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

A half-space constraint derived from an ancestor split. More...

#include <Visualization.hpp>

Public Member Functions

 HalfSpace (types::FeatureVector projector, types::Feature cutpoint, bool is_lower)
 

Public Attributes

types::Feature cutpoint
 
bool is_lower = false
 true = lower child side (projected value < cutpoint).
 
types::FeatureVector projector
 

Detailed Description

A half-space constraint derived from an ancestor split.

Represents the constraint projector^T x < cutpoint (if is_lower) or projector^T x >= cutpoint (if !is_lower). Stored in the full p-dimensional space; projected to 2D when needed by the visitors.

As BoundaryVisitor and RegionVisitor traverse the tree, they accumulate a stack of HalfSpace constraints — one per ancestor split on the path from root to the current node. These constraints define the convex region in which the current node's boundary is active (BoundaryVisitor) or the leaf's decision region (RegionVisitor).

See also
BoundaryVisitor, RegionVisitor

Constructor & Destructor Documentation

◆ HalfSpace()

ppforest2::viz::HalfSpace::HalfSpace ( types::FeatureVector projector,
types::Feature cutpoint,
bool is_lower )
inline

Member Data Documentation

◆ cutpoint

types::Feature ppforest2::viz::HalfSpace::cutpoint

◆ is_lower

bool ppforest2::viz::HalfSpace::is_lower = false

true = lower child side (projected value < cutpoint).

◆ projector

types::FeatureVector ppforest2::viz::HalfSpace::projector

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