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

List of all members.

Public Member Functions

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

Constructor & Destructor Documentation

Constructor.

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

Member Function Documentation

cxsc::real subpavings::RealEstimator::visit ( SPnode spn) const [virtual]

The visit operation.

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

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

    {
    #ifdef MYDEBUG
      std::cout << "in RealEstimator::visit, for " << spn->getNodeName() << std::endl;
    #endif
    
        ivector box = spn->getBox();
    
    #ifdef MYDEBUG
      std::cout << "this box is " << box << std::endl;
        #endif
    
    real thisRange = fobj.imageMid(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