28 #ifndef ROOT_TMVA_PDEFoamKernelGauss 29 #define ROOT_TMVA_PDEFoamKernelGauss 44 template<
typename T>
T Sqr(
T x)
const {
return x *
x; }
This PDEFoam kernel estimates a cell value for a given event by weighting all cell values with a gaus...
This class is the abstract kernel interface for PDEFoam.
virtual ~PDEFoamKernelGauss()
Float_t WeightGaus(PDEFoam *, PDEFoamCell *, std::vector< Float_t > &)
Returns the gauss weight between the 'cell' and a given coordinate 'txvec'.
Float_t GetAverageNeighborsValue(PDEFoam *, std::vector< Float_t > &, ECellValue)
This function returns the average value 'cv' of only nearest neighbor cells.
#define ClassDef(name, id)
PDEFoamKernelGauss(Float_t sigma)
Default constructor for streamer.
Implementation of PDEFoam.
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)
Gaussian kernel estimator.
Abstract ClassifierFactory template that handles arbitrary types.