npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::RatioResponseIntervalBuilder< Point > Class Template Reference
Inheritance diagram for npstat::RatioResponseIntervalBuilder< Point >:
npstat::AbsResponseIntervalBuilder< Point >

Public Types

typedef AbsResponseIntervalBuilder< Point > B
 
typedef B::WeightedPointPtr WeightedPointPtr
 
typedef B::WeightedPtrVec WeightedPtrVec
 
- Public Types inherited from npstat::AbsResponseIntervalBuilder< Point >
typedef std::pair< const Point *, double > WeightedPointPtr
 
typedef std::vector< WeightedPointPtr > WeightedPtrVec
 

Public Member Functions

 RatioResponseIntervalBuilder (unsigned denomDim, double numeratorCut, double badFraction)
 
virtual Interval< double > makeResponseInterval (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, std::vector< typename Point::value_type > &data) const
 
virtual Interval< double > makeResponseIntervalW (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, const WeightedPtrVec &data, unsigned responseDimToUse) const
 

Constructor & Destructor Documentation

◆ RatioResponseIntervalBuilder()

template<class Point >
npstat::RatioResponseIntervalBuilder< Point >::RatioResponseIntervalBuilder ( unsigned  denomDim,
double  numeratorCut,
double  badFraction 
)

The constructor arguments are as follows:

denomDim – the dimension number of the predictor variable used as the ratio denominator inside the Point class

numeratorCut – the cut imposed on the numerator of the ratio (assuming "numerator > cut" requirement). It is assumed that both numerator and denominator are positive.

badFraction – the maximum fraction of weights for which the distribution of the ratio will be distorted. These are all the weights to the left of the predictor value given by the ratio numeratorCut/(chosen ratioCut).


The documentation for this class was generated from the following file: