npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
cumulantUncertainties.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_CUMULANTUNCERTAINTIES_HH_
2 #define NPSTAT_CUMULANTUNCERTAINTIES_HH_
3 
4 /*!
5 // \file cumulantUncertainties.hh
6 //
7 // \brief Uncertainties of sample cumulants using population cumulants
8 //
9 // Author: I. Volobouev
10 //
11 // July 2019
12 */
13 
14 namespace npstat {
15  /**
16  // Array "cumulants" should have at least maxCumOrder+1 elements.
17  // Array "uncertainties" should have at least maxUncertOrder+1 elements.
18  // maxCumOrder must be larger than or equal to 2*maxUncertOrder.
19  // On exit, uncertainties[1] will contain the expected uncertainty
20  // of the first cumulant (i.e., the mean) for the sample of size
21  // "sampleSize", uncertainties[2] will contain the expected uncertainty
22  // of the second cumulant, etc.
23  //
24  // The formulae used can be found in Chapter 12 of Stuart and Ord.
25  */
26  template<typename Real>
27  void cumulantUncertainties(const Real* cumulants, unsigned maxCumOrder,
28  unsigned long sampleSize,
29  Real* uncertainties, unsigned maxUncertOrder);
30 }
31 
32 #include "npstat/stat/cumulantUncertainties.icc"
33 
34 #endif // NPSTAT_CUMULANTUNCERTAINTIES_HH_
Definition: AbsArrayProjector.hh:14
void cumulantUncertainties(const Real *cumulants, unsigned maxCumOrder, unsigned long sampleSize, Real *uncertainties, unsigned maxUncertOrder)