npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::AbsBandwidthGCV1D< Numeric, Num2 > Struct Template Referenceabstract

#include <AbsBandwidthGCV.hh>

Inheritance diagram for npstat::AbsBandwidthGCV1D< Numeric, Num2 >:
npstat::BandwidthGCVLeastSquares1D< Numeric, Num2 > npstat::BandwidthGCVPseudoLogli1D< Numeric, Num2 >

Public Types

typedef Numeric bin_type
 
typedef Num2 density_type
 

Public Member Functions

virtual double operator() (const HistoND< Numeric > &histo, const Num2 *densityEstimate, const Num2 *leaveOneOutEstimate, unsigned lenEstimate, const AbsPolyFilter1D &filterUsed) const =0
 
virtual double operator() (const HistoND< Numeric > &histo, double effectiveSampleSize, const Num2 *densityEstimate, const Num2 *leaveOneOutEstimate, unsigned lenEstimate, const AbsPolyFilter1D &filterUsed) const =0
 

Detailed Description

template<typename Numeric, typename Num2>
struct npstat::AbsBandwidthGCV1D< Numeric, Num2 >

Cross-validation for univariate densities. "Numeric" template parameter is the type of histogram bins. "Num2" is the type produced by the density estimation code (usually just double).

Member Function Documentation

◆ operator()() [1/2]

template<typename Numeric , typename Num2 >
virtual double npstat::AbsBandwidthGCV1D< Numeric, Num2 >::operator() ( const HistoND< Numeric > &  histo,
const Num2 *  densityEstimate,
const Num2 *  leaveOneOutEstimate,
unsigned  lenEstimate,
const AbsPolyFilter1D filterUsed 
) const
pure virtual

It should be assumed that the "nFillsInRange" method of the argument histogram returns the actual number of fills (that is, the histogram represents an actual collection of points, has possible bin values of 0, 1, 2, ..., and it is not scaled).

Implemented in npstat::BandwidthGCVPseudoLogli1D< Numeric, Num2 >, and npstat::BandwidthGCVLeastSquares1D< Numeric, Num2 >.

◆ operator()() [2/2]

template<typename Numeric , typename Num2 >
virtual double npstat::AbsBandwidthGCV1D< Numeric, Num2 >::operator() ( const HistoND< Numeric > &  histo,
double  effectiveSampleSize,
const Num2 *  densityEstimate,
const Num2 *  leaveOneOutEstimate,
unsigned  lenEstimate,
const AbsPolyFilter1D filterUsed 
) const
pure virtual

Cross-validation for samples of univariate weighted points

Implemented in npstat::BandwidthGCVPseudoLogli1D< Numeric, Num2 >, and npstat::BandwidthGCVLeastSquares1D< Numeric, Num2 >.


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