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

List of all members.

Public Member Functions

 IntervalEstimator (const MappedFobj &f)
 Constructor.
cxsc::interval visit (SPnode *spn) const
 The visit operation.

Constructor & Destructor Documentation

Constructor.

Parameters:
fdescribes a function to be estimated.
                : fobj(f)
  {}

Member Function Documentation

cxsc::interval subpavings::IntervalEstimator::visit ( SPnode spn) const [virtual]

The visit operation.

Parameters:
spna pointer to an SPnode to be visited.
Returns:
the interval image under the function to be estimated by this of the box associated with the node pointed to by spn.

Implements subpavings::SPValueVisitor< cxsc::interval >.

    {
    #ifdef MYDEBUG
      std::cout << "in IntervalEstimator::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 thisRange;
    }

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