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

Class for testing the change in AIC score from merging. More...

+ Inheritance diagram for subpavings::CritAICMergeChange_GTE:
+ Collaboration diagram for subpavings::CritAICMergeChange_GTE:

List of all members.

Public Member Functions

 CritAICMergeChange_GTE (const PenObj &p, double t)
bool operator() (const AdaptiveHistogram *const adh) const

Detailed Description

Class for testing the change in AIC score from merging.

True if the change in AIC score from merging best node to merge >= test.


Member Function Documentation

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

True if the change in AIC score from merging best node to merge >= test.

Implements subpavings::HistEvalObj.

  {
    dotprecision best = adh->getSubPaving()->getBestMergeChangeEMPAIC();

    real change = rnd(best) + pen(adh, -1) - pen(adh, 0); // merge = -1 leaf

    return (change >= test);
  }

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