ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::viz::LayoutParams Struct Reference

Layout parameters for tree structure rendering. More...

#include <Visualization.hpp>

Public Attributes

types::Feature gap = 0.2f
 Horizontal gap between sibling subtrees.
 
types::Feature leaf_h = 0.3f
 Leaf node height.
 
types::Feature leaf_w = 0.5f
 Leaf node width.
 
types::Feature node_h = 0.7f
 Internal node height.
 
types::Feature node_w = 0.8f
 Internal node width.
 
types::Feature y_spacing = 1.5f
 Vertical distance between depth levels.
 

Detailed Description

Layout parameters for tree structure rendering.

Controls spacing and dimensions used by compute_tree_layout(). Node dimensions must match the R-side constants (ppforest2_node_w, etc.) so that histogram bars and leaf labels align with the rectangles.

Member Data Documentation

◆ gap

types::Feature ppforest2::viz::LayoutParams::gap = 0.2f

Horizontal gap between sibling subtrees.

◆ leaf_h

types::Feature ppforest2::viz::LayoutParams::leaf_h = 0.3f

Leaf node height.

◆ leaf_w

types::Feature ppforest2::viz::LayoutParams::leaf_w = 0.5f

Leaf node width.

◆ node_h

types::Feature ppforest2::viz::LayoutParams::node_h = 0.7f

Internal node height.

◆ node_w

types::Feature ppforest2::viz::LayoutParams::node_w = 0.8f

Internal node width.

◆ y_spacing

types::Feature ppforest2::viz::LayoutParams::y_spacing = 1.5f

Vertical distance between depth levels.


The documentation for this struct was generated from the following file: