1 #ifndef NPSI_MINUITSEMIPARAMETRICFITUTILS_HH_
2 #define NPSI_MINUITSEMIPARAMETRICFITUTILS_HH_
28 template <
typename Numeric>
30 const double filterDeg,
37 assert(histo.
dim() == 1U);
38 double minBandwidth = (filterDeg + 2.0)*histo.
binVolume();
47 inline double featureBandwidth1D(
const double featureSize,
48 const double filterDeg,
49 const double effectiveNBg,
53 if (featureSize > 0.0)
66 template <
typename Numeric>
68 const double featureSize,
69 const double filterDeg,
73 const double bw1 = boundaryBandwidth1D(histo, filterDeg, m);
74 const double bw2 = featureBandwidth1D(featureSize, filterDeg, nbg, m);
75 return std::sqrt(bw1*bw1 + bw2*bw2);
Arbitrary-dimensional histogram template.
Optimal AMISE bandwidth for KDE with high order kernels.
Definition: HistoND.hh:46
double binVolume(unsigned long binNumber=0) const
unsigned dim() const
Definition: HistoND.hh:187
Definition: fitCompositeJohnson.hh:16
double approxSymbetaBandwidthRatio(int power, double filterDegree)
double approxAmisePluginBwGauss(double filterDegree, double npoints, double sampleSigma)