Class for splitting based on average volume per point of a node. More...
Public Member Functions | |
SplitOnVolDivK (double avg, size_t minCP=0) | |
bool | operator() () const |
bool | operator() (const SPSnode *const spn) const |
Class for splitting based on average volume per point of a node.
This class will try to split a node with average volume per point of data > avgVol, but will never split any node if the result would give at least one child with < minChildPoints of data associated with it. i.e. the class will only split a node if the node has > maxPoints of data and both children after the split will have >= minChildPoints of data.
Thus this class may leave a node with average volume per point of data > avgVol unsplit because splitting the node would create a child node with < minChildPoints of data associated with it.