npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
likelihoodStatisticCumulants.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_LIKELIHOODSTATISTICCUMULANTS_HH_
2 #define NPSTAT_LIKELIHOODSTATISTICCUMULANTS_HH_
3 /*!
4 // \file likelihoodStatisticCumulants.hh
5 //
6 // \brief Code for calculating cumulants of various signal detection
7 // statistics for subsequent use in the Edgeworth series
8 //
9 // Author: I. Volobouev
10 //
11 // July 2019
12 */
13 
14 #include <vector>
15 #include <limits>
16 
18 
19 namespace npstat {
20  /**
21  // The meaning of the "order" argument is the same as in the
22  // constructor of the EdgeworthSeries1D class.
23  //
24  // "N" is the sample size.
25  //
26  // The default values of the shape parameters play essenstially
27  // the same role as "None" does in Python. A sufficient number
28  // of shape parameters should be provided in order to generate
29  // the cumulants up to the order requested.
30  //
31  // The returned vector of cumulants can be used as the corresponding
32  // constructor argument of the EdgeworthSeries1D class.
33  */
34  std::vector<double> mixtureModelCumulants(
35  LikelihoodStatisticType t,
36  unsigned order, unsigned N,
37  double gamma = std::numeric_limits<double>::max(),
38  double rho = std::numeric_limits<double>::max(),
39  double xi = std::numeric_limits<double>::max(),
40  double zeta = std::numeric_limits<double>::max());
41 
42  /**
43  // The meaning of the "order" argument is the same as in the
44  // constructor of the EdgeworthSeries1D class.
45  //
46  // "mu" is the background rate.
47  //
48  // The default values of the shape parameters play essenstially
49  // the same role as "None" does in Python. A sufficient number
50  // of shape parameters should be provided in order to generate
51  // the cumulants up to the order requested.
52  //
53  // The returned vector of cumulants can be used as the corresponding
54  // constructor argument of the EdgeworthSeries1D class.
55  */
56  std::vector<double> poissonProcessCumulants(
57  LikelihoodStatisticType t,
58  unsigned order, double mu,
59  double gamma = std::numeric_limits<double>::max(),
60  double rho = std::numeric_limits<double>::max(),
61  double xi = std::numeric_limits<double>::max(),
62  double zeta = std::numeric_limits<double>::max());
63 }
64 
65 #endif // NPSTAT_LIKELIHOODSTATISTICCUMULANTS_HH_
Enumeration of types of likelihood-based signal detection statistics.
Definition: AbsArrayProjector.hh:14
std::vector< double > poissonProcessCumulants(LikelihoodStatisticType t, unsigned order, double mu, double gamma=std::numeric_limits< double >::max(), double rho=std::numeric_limits< double >::max(), double xi=std::numeric_limits< double >::max(), double zeta=std::numeric_limits< double >::max())
std::vector< double > mixtureModelCumulants(LikelihoodStatisticType t, unsigned order, unsigned N, double gamma=std::numeric_limits< double >::max(), double rho=std::numeric_limits< double >::max(), double xi=std::numeric_limits< double >::max(), double zeta=std::numeric_limits< double >::max())