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

#include <BandwidthGCVLeastSquares1D.hh>

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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from npstat::AbsBandwidthGCV1D< Numeric, Num2 >
typedef Numeric bin_type
 
typedef Num2 density_type
 

Detailed Description

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

Class for calculating KDE or LOrPE cross-validation MISE approximations for 1-dimensional density estimates. operator() returns -MISE estimate (a quantity to be maximized). This class is intended for use inside degree and/or bandwidth scans.

Member Function Documentation

◆ operator()() [1/2]

template<typename Numeric , typename Num2 >
virtual double npstat::BandwidthGCVLeastSquares1D< Numeric, Num2 >::operator() ( const HistoND< Numeric > &  histo,
const Num2 *  densityEstimate,
const Num2 *  leaveOneOutEstimate,
unsigned  lenEstimate,
const AbsPolyFilter1D filterUsed 
) const
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).

Implements npstat::AbsBandwidthGCV1D< Numeric, Num2 >.

◆ operator()() [2/2]

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

Cross-validation for samples of univariate weighted points

Implements npstat::AbsBandwidthGCV1D< Numeric, Num2 >.


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