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

#include <AbsCompositeDistroBuilder.hh>

Inheritance diagram for npstat::AbsCompositeDistroBuilder< Point >:
npstat::DummyCompositeDistroBuilder< Point > npstat::NonparametricCompositeBuilder< Point >

Public Types

typedef CompositeDistributionND 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 CompositeDistributionNDbuild (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, std::vector< OrderedPointND< Point > > &data) const
 
virtual CompositeDistributionNDbuildWeighted (unsigned long uniqueId, const double *predictorCoords, unsigned nPredictors, const BoxND< double > &predictorBox, const WeightedPtrVec &data, const unsigned *dimsToUse, unsigned nDimsToUse) const
 

Detailed Description

template<class Point>
class npstat::AbsCompositeDistroBuilder< Point >

Interface definition for classes which build composite distrubutions out of data samples (typically, by fitting or smoothing) – see header CompositeDistributionND.hh for more details on these distributions.

Member Function Documentation

◆ build()

template<class Point >
virtual CompositeDistributionND* npstat::AbsCompositeDistroBuilder< Point >::build ( unsigned long  uniqueId,
const double *  predictorCoords,
unsigned  nPredictors,
const BoxND< double > &  predictorBox,
std::vector< OrderedPointND< Point > > &  data 
) const
virtual

This method will build a CompositeDistributionND 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::DummyCompositeDistroBuilder< Point >.

◆ buildWeighted()

template<class Point >
virtual CompositeDistributionND* npstat::AbsCompositeDistroBuilder< Point >::buildWeighted ( unsigned long  uniqueId,
const double *  predictorCoords,
unsigned  nPredictors,
const BoxND< double > &  predictorBox,
const WeightedPtrVec &  data,
const unsigned *  dimsToUse,
unsigned  nDimsToUse 
) const
virtual

This method will build a CompositeDistributionND 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::DummyCompositeDistroBuilder< Point >.


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