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

A clipped decision boundary line segment in 2D feature space. More...

#include <Visualization.hpp>

Public Attributes

int depth
 
types::Feature x_end
 
types::Feature x_start
 
types::Feature y_end
 
types::Feature y_start
 

Detailed Description

A clipped decision boundary line segment in 2D feature space.

Each segment corresponds to one split node's boundary line, clipped to the visible bounding box and to all ancestor half-space constraints. The depth field records the tree depth for potential styling (e.g., thinner lines at deeper levels).

Produced by BoundaryVisitor; consumed by the R layer as a data frame of (x_start, y_start, x_end, y_end, depth) rows, rendered with ggplot2::geom_segment().

See also
BoundaryVisitor, clip_boundary_2d

Member Data Documentation

◆ depth

int ppforest2::viz::BoundarySegment::depth

◆ x_end

types::Feature ppforest2::viz::BoundarySegment::x_end

◆ x_start

types::Feature ppforest2::viz::BoundarySegment::x_start

◆ y_end

types::Feature ppforest2::viz::BoundarySegment::y_end

◆ y_start

types::Feature ppforest2::viz::BoundarySegment::y_start

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