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

Class for testing change in AIC or number leaves from splitting. More...

+ Inheritance diagram for subpavings::CritAICChangeOrLeaves_GTE:
+ Collaboration diagram for subpavings::CritAICChangeOrLeaves_GTE:

List of all members.

Public Member Functions

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

Detailed Description

Class for testing change in AIC or number leaves from splitting.


Member Function Documentation

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));
  }

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