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 | |
CritLargestVol_LTE_CritLeaves_GTE (double vol, 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::CritLargestVol_LTE_CritLeaves_GTE::operator() | ( | const AdaptiveHistogram *const | adh | ) | const [virtual] |
True if the largest leaf volume is <= testVol OR if the number of leaves is >= testLeaves.
Implements subpavings::HistEvalObj.
{
return
((((adh->getSubPaving())->getLargestLeafVol()) <= testVol)
||
(adh->getRootLeaves() >= testLeaves));
}