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

Public Types

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

Public Member Functions

 RatioResponseBoxBuilder (unsigned denomDim, unsigned ratioDim, double numeratorCut, double badFraction)
 
virtual BoxND< double > makeResponseBox (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, std::vector< OrderedPointND< Point > > &data) const
 
virtual BoxND< double > makeResponseBoxW (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, const WeightedPtrVec &data, const unsigned *dimsToUse, unsigned nDimsToUse) const
 

Constructor & Destructor Documentation

◆ RatioResponseBoxBuilder()

template<class Point >
npstat::RatioResponseBoxBuilder< Point >::RatioResponseBoxBuilder ( unsigned  denomDim,
unsigned  ratioDim,
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

ratioDim – the dimension number (inside the Point class) of the ratio variable itself

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: