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