#include <ChisqConsistency.h>
Definition at line 27 of file ChisqConsistency.h.
◆ ChisqConsistency() [1/4]
ChisqConsistency::ChisqConsistency |
( |
| ) |
|
◆ ChisqConsistency() [2/4]
ChisqConsistency::ChisqConsistency |
( |
double | chisq, |
|
|
double | nDof ) |
Definition at line 42 of file ChisqConsistency.cxx.
42 :
44{
47
49 std::cout << "ErrMsg(warning)" << " Got unphysical values: chisq = " << chisq
50 << " #dof = " << nDof << std::endl;
54 return;
55 }
57
58
60
63 } else {
65 if ( loglike < DBL_MIN_EXP ) {
68 } else {
70 }
71 }
72}
EvtComplex exp(const EvtComplex &c)
void setStatus(ConsistentStatus s)
static double gammq(double a, double x)
static double gammln(double x)
◆ ChisqConsistency() [3/4]
ChisqConsistency::ChisqConsistency |
( |
unsigned | nDof, |
|
|
double | consistency ) |
Definition at line 76 of file ChisqConsistency.cxx.
76 :
78{
79 if(prob >= 0.0|| prob <= 1.0 || nDof < 0)
81 else {
82 std::cout << "ErrMsg(warning)" << " Got unphysical values: prob = " << prob
83 << " #dof = " << nDof << std::endl;
87 return;
88 }
90 if(prob != 1.0){
91
92 float value = 1.0-float(
_value);
93 int ndof = nDof;
94 if(value < 1.0)
96 else
97 _chisq = log(
double(FLT_MAX));
98
103 } else {
105 if ( loglike < DBL_MIN_EXP ) {
108 } else {
110 }
111 }
112 }
113}
float chisin_(const float &, const int &)
◆ ChisqConsistency() [4/4]
◆ ~ChisqConsistency()
virtual ChisqConsistency::~ChisqConsistency |
( |
| ) |
|
|
inlinevirtual |
◆ chisqValue()
const double & ChisqConsistency::chisqValue |
( |
| ) |
const |
|
inline |
◆ nDOF()
const double & ChisqConsistency::nDOF |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 121 of file ChisqConsistency.cxx.
121 {
122 if(this != &other){
126 }
127 return *this;
128}
Consistency & operator=(const Consistency &rhs)
◆ _chisq
double ChisqConsistency::_chisq |
|
protected |
◆ _nDof
double ChisqConsistency::_nDof |
|
protected |
The documentation for this class was generated from the following files: