MRS  1.0
A C++ Class Library for Statistical Set Processing
subpavings::BooleanValueImageEstimator Class Reference
+ Inheritance diagram for subpavings::BooleanValueImageEstimator:
+ Collaboration diagram for subpavings::BooleanValueImageEstimator:

List of all members.

Public Member Functions

 BooleanValueImageEstimator (const MappedFobj &f, const cxsc::interval &crit)
 Constructor.
BooleanMappedValue visit (SPnode *spn) const
 The visit operation.

Constructor & Destructor Documentation

subpavings::BooleanValueImageEstimator::BooleanValueImageEstimator ( const MappedFobj f,
const cxsc::interval &  crit 
)

Constructor.

Parameters:
fdescribes a function to be estimated.
                : fobj(f), supCriterion(Sup(crit)), infCriterion(Inf(crit))
  {}

Member Function Documentation

The visit operation.

Parameters:
spna pointer to an SPnode to be visited.
Returns:
BooleanMappedValue indicating whether the interval image under the function to be estimated by this of the box associated with the node pointed to by spn is inside or partially inside (ie overlaps with) the interval criterion of this.

Implements subpavings::SPValueVisitor< BooleanMappedValue >.

    {
    #ifdef MYDEBUG
      std::cout << "in BooleanValueImageEstimator::visit, for " << spn->getNodeName() << std::endl;
    #endif
    
        ivector box = spn->getBox();
    
    #ifdef MYDEBUG
      std::cout << "this box is " << box << std::endl;
        #endif
    
    interval thisRange = fobj(box);
      
    #ifdef MYDEBUG
      std::cout << "this range is " << thisRange << std::endl;
    #endif
    
    return BooleanMappedValue( !(Sup(thisRange) < infCriterion) 
        && !(Inf(thisRange) > supCriterion) );
    }

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