Class for testing change in COPERR or number leaves from splitting. More...
Public Member Functions | |
CritCOPERRChangeOrLeaves_GTE (const PenObj &p, size_t tl, double ts) | |
bool | operator() (const AdaptiveHistogram *const adh) const |
Class for testing change in COPERR or number leaves from splitting.
bool subpavings::CritCOPERRChangeOrLeaves_GTE::operator() | ( | const AdaptiveHistogram *const | adh | ) | const [virtual] |
True if the change in COPERR score from splitting best node to split >= testScore OR if number of leaves is >= testLeaves.
Implements subpavings::HistEvalObj.
{
CritLeaves_GTE critLeaves(testLeaves);
CritCOPERRChange_GTE critScore(pen, testScore);
return (critLeaves(adh) || critScore(adh));
}