Class for testing the count of the node with the largest count or the maximum number of leaves in histogram's subpaving. More...
Public Member Functions | |
CritLargestCount_LTE_CritLeaves_GTE (size_t tCount, size_t tLeaves) | |
bool | operator() (const AdaptiveHistogram *const adh) const |
Class for testing the count of the node with the largest count or the maximum number of leaves in histogram's subpaving.
bool subpavings::CritLargestCount_LTE_CritLeaves_GTE::operator() | ( | const AdaptiveHistogram *const | adh | ) | const [virtual] |
True if the largest leaf count is <= testCount OR if the number of leaves is >= testLeaves.
Implements subpavings::HistEvalObj.
{
return
((((adh->getSubPaving())->getLargestLeafCount()) <= testCount)
||
(adh->getRootLeaves() >= testLeaves));
}