npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
lorpeBackgroundCVDensity1D.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_LORPEBACKGROUNDCVDENSITY1D_HH_
2 #define NPSTAT_LORPEBACKGROUNDCVDENSITY1D_HH_
3 
4 /*!
5 // \file lorpeBackgroundCVDensity1D.hh
6 //
7 // \brief Linearization of cross-validation calculations. This replaces
8 // iterations performed inside lorpeBackground1D function.
9 //
10 // Author: I. Volobouev
11 //
12 // October 2013
13 */
14 
16 
17 namespace npstat {
18  template<typename Numeric, typename NumOut>
19  void lorpeBackgroundCVDensity1D(
20  const LocalPolyFilter1D& filter, const HistoND<Numeric>& histo,
21  double signalFraction,
22  const NumOut* signalDensity, unsigned lenSignalDensity,
23  const NumOut* bgDensity, unsigned lenBgDensity,
24  std::vector<double>& workspace,
25  NumOut* densityMinusOne, unsigned lenDensityMinusOne);
26 }
27 
28 #include "npstat/stat/lorpeBackgroundCVDensity1D.icc"
29 
30 #endif // NPSTAT_LORPEBACKGROUNDCVDENSITY1D_HH_
Local polynomial filtering (regression) on 1-d equidistant grids.
Definition: AbsArrayProjector.hh:14