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

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

+ Inheritance diagram for subpavings::CritAICChange_GTE:
+ Collaboration diagram for subpavings::CritAICChange_GTE:

List of all members.

Public Member Functions

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

Detailed Description

Class for testing the change in AIC score from splitting.

Warning:
Never just use critAICChange on its own: it could keep splitting for ever. Use critAICChangeOrLeaves_GTE instead.

Member Function Documentation

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

True if the change in AIC score from splitting best node to split >= test.

Implements subpavings::HistEvalObj.

  {
    dotprecision best = adh->getSubPaving()->getBestSplitChangeEMPAIC();
    real change = rnd(best) + pen(adh, 1) - pen(adh, 0);

    return (change >= test);
  }

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