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

Penalty function as number of leaves in histogram. More...

+ Inheritance diagram for subpavings::PenLeaves:
+ Collaboration diagram for subpavings::PenLeaves:

List of all members.

Public Member Functions

 PenLeaves (double b)
cxsc::real operator() (const AdaptiveHistogram *const adh, int deltaLeaf) const
 the penalty function.

Detailed Description

Penalty function as number of leaves in histogram.


Member Function Documentation

real subpavings::PenLeaves::operator() ( const AdaptiveHistogram *const  adh,
int  deltaLeaf 
) const [virtual]

the penalty function.

Parameters:
adhis the histogram object to calculate the penalty on.
deltaLeafchange in number leaves to take into account.
Returns:
the penalty as a cxsc::real.

Implements subpavings::PenObj.

  {
    real penalty;
    penalty = beta*(adh->getSubPaving()->getNumberLeaves()) + deltaLeaf;
    return penalty;
  }

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