npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
LikelihoodStatisticType.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_LIKELIHOODSTATISTICTYPE_HH_
2 #define NPSTAT_LIKELIHOODSTATISTICTYPE_HH_
3 
4 /*!
5 // \file LikelihoodStatisticType.hh
6 //
7 // \brief Enumeration of types of likelihood-based signal detection statistics
8 //
9 // Author: I. Volobouev
10 //
11 // July 2019
12 */
13 
14 #include <string>
15 
16 namespace npstat {
17  enum LikelihoodStatisticType
18  {
19  L_STAT_R_W = 0, // Signed Wald, using Cramer-Rao sigma
20  L_STAT_R_W2, // Signed Wald, using observed information
21  L_STAT_R_W3, // Signed Wald, using delta-log-likelihood = -1/2 rule
22  L_STAT_R_S, // Signed score statistic
23  L_STAT_R_LR // Signed likelihood ratio
24  };
25 
26  /** Enums corresponding to simplified statistic names */
27  LikelihoodStatisticType parseLikelihoodStatisticType(const char* name);
28 
29  /** Statistic names corresponding to enums */
30  const char* likelihoodStatisticName(LikelihoodStatisticType t);
31 
32  /** All valid statistic names or use in error messages, etc */
34 }
35 
36 #endif // NPSTAT_LIKELIHOODSTATISTICTYPE_HH_
Definition: AbsArrayProjector.hh:14
LikelihoodStatisticType parseLikelihoodStatisticType(const char *name)
std::string validLikelihoodStatisticNames()
const char * likelihoodStatisticName(LikelihoodStatisticType t)