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