Class for testing change in COPERR or number leaves from merging. More...
Public Member Functions | |
CritCOPERRMergeChangeOrLeaves_LTE (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 merging.
bool subpavings::CritCOPERRMergeChangeOrLeaves_LTE::operator() | ( | const AdaptiveHistogram *const | adh | ) | const [virtual] |
True if the change in COPERR score from merging best node to merge >= testScore OR if number of leaves is <= testLeaves.
Implements subpavings::HistEvalObj.
{
CritLeaves_LTE critLeaves(testLeaves);
CritCOPERRMergeChange_GTE critScore(pen, testScore);
return (critLeaves(adh) || critScore(adh));
}