Class for testing the change in COPERR score from splitting. More...
Public Member Functions | |
CritCOPERRChange_GTE (const PenObj &p, double t) | |
bool | operator() (const AdaptiveHistogram *const adh) const |
Class for testing the change in COPERR score from splitting.
bool subpavings::CritCOPERRChange_GTE::operator() | ( | const AdaptiveHistogram *const | adh | ) | const [virtual] |
True if the change in COPERR score from splitting best node to split >= test.
Implements subpavings::HistEvalObj.
{
dotprecision best = adh->getSubPaving()->getBestSplitChangeEMPCOPERR(
adh->getSubPaving()->getCounter());
real change = rnd(best) + pen(adh, 1) - pen(adh, 0);
return (change >= test);
}