MRS  1.0
A C++ Class Library for Statistical Set Processing
subpavings::CritCOPERRMergeChangeOrLeaves_LTE Class Reference

Class for testing change in COPERR or number leaves from merging. More...

+ Inheritance diagram for subpavings::CritCOPERRMergeChangeOrLeaves_LTE:
+ Collaboration diagram for subpavings::CritCOPERRMergeChangeOrLeaves_LTE:

List of all members.

Public Member Functions

 CritCOPERRMergeChangeOrLeaves_LTE (const PenObj &p, size_t tl, double ts)
bool operator() (const AdaptiveHistogram *const adh) const

Detailed Description

Class for testing change in COPERR or number leaves from merging.


Member Function Documentation

bool subpavings::CritCOPERRMergeChangeOrLeaves_LTE::operator() ( const AdaptiveHistogram *const  adh) const [virtual]

True if the change in COPERR score from merging best node to merge >= testScore OR if number of leaves is <= testLeaves.

Implements subpavings::HistEvalObj.

  {
    CritLeaves_LTE critLeaves(testLeaves);
    CritCOPERRMergeChange_GTE critScore(pen, testScore);

    return (critLeaves(adh) || critScore(adh));
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends