npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::NonparametricDistro1DBuilder< Point > Class Template Reference

#include <NonparametricDistro1DBuilder.hh>

Inheritance diagram for npstat::NonparametricDistro1DBuilder< Point >:
npstat::AbsDistro1DBuilder< Point >

Public Types

typedef AbsDistro1DBuilder< Point > B
 
typedef B::WeightedPointPtr WeightedPointPtr
 
typedef B::WeightedPtrVec WeightedPtrVec
 
typedef B::WeightedValue WeightedValue
 
typedef B::WeightedValueVec WeightedValueVec
 
- Public Types inherited from npstat::AbsDistro1DBuilder< Point >
typedef AbsDistribution1D result_type
 
typedef std::pair< const Point *, double > WeightedPointPtr
 
typedef std::vector< WeightedPointPtr > WeightedPtrVec
 
typedef std::pair< typename Point::value_type, double > WeightedValue
 
typedef std::vector< WeightedValue > WeightedValueVec
 

Public Member Functions

 NonparametricDistro1DBuilder (AbsMarginalSmootherBase *smoother1D, AbsResponseIntervalBuilder< Point > *intervalBuilder, bool takePointerOwnership, unsigned interpolationDegree=1U)
 
double lastBandwidth () const
 
void setArchive (gs::AbsArchive *ar, const char *category=0)
 
- Public Member Functions inherited from npstat::AbsDistro1DBuilder< Point >
virtual AbsDistribution1Dbuild (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, std::vector< typename Point::value_type > &data) const
 
virtual AbsDistribution1DbuildWeighted (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, const WeightedPtrVec &data, unsigned responseDimToUse) const
 

Detailed Description

template<class Point>
class npstat::NonparametricDistro1DBuilder< Point >

A class for building conditional nonparametric estimates of univariate densities

Constructor & Destructor Documentation

◆ NonparametricDistro1DBuilder()

template<class Point >
npstat::NonparametricDistro1DBuilder< Point >::NonparametricDistro1DBuilder ( AbsMarginalSmootherBase smoother1D,
AbsResponseIntervalBuilder< Point > *  intervalBuilder,
bool  takePointerOwnership,
unsigned  interpolationDegree = 1U 
)

Constructor arguments are as follows:

smoother1D – distribution smoother pointer

intervalBuilder – pointer for the response interval builder

takePointerOwnership – if true, delete smoother1D and intervalBuilder in the destructor

interpolationDegree – interpolation degree for the density array. Currently must be 0 or 1, limited by the abilities of BinnedDensity1D class.

Member Function Documentation

◆ lastBandwidth()

template<class Point >
double npstat::NonparametricDistro1DBuilder< Point >::lastBandwidth ( ) const
inline

Bandwidth used in the most recent smoothing of the marginals

◆ setArchive()

template<class Point >
void npstat::NonparametricDistro1DBuilder< Point >::setArchive ( gs::AbsArchive *  ar,
const char *  category = 0 
)

Set the archive for storing the histograms


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