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

#include <AbsDistro1DBuilder.hh>

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

Public Types

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

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::AbsDistro1DBuilder< Point >

Interface definition for classes which reconstruct univariate distrubutions out of data samples (typically, by fitting or smoothing)

Member Function Documentation

◆ build()

template<class Point >
virtual AbsDistribution1D* npstat::AbsDistro1DBuilder< Point >::build ( unsigned long  uniqueId,
const double *  predictorCoords,
unsigned  nPredictors,
const BoxND< double > &  predictorBox,
std::vector< typename Point::value_type > &  data 
) const
virtual

This method will build an AbsDistribution1D object on the heap using a sample of points. It is a responsibility of the user to delete such an object when it is no longer needed.

Reimplemented in npstat::DummyDistro1DBuilder< Point >.

◆ buildWeighted()

template<class Point >
virtual AbsDistribution1D* npstat::AbsDistro1DBuilder< Point >::buildWeighted ( unsigned long  uniqueId,
const double *  predictorCoords,
unsigned  nPredictors,
const BoxND< double > &  predictorBox,
const WeightedPtrVec &  data,
unsigned  responseDimToUse 
) const
virtual

This method will build an AbsDistribution1D object on the heap using a sample of weighted points. It is a responsibility of the user to delete such an object when it is no longer needed.

Reimplemented in npstat::DummyDistro1DBuilder< Point >.


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