#include <ChiSquared.h>
Public Member Functions | |
ChiSquared (float value, float ndf) | |
float | degreesOfFreedom () const |
float | lnProbability () const |
float | probability () const |
float | value () const |
Private Attributes | |
float | theNDF |
float | theValue |
Constructed with total chi-squared value value
and number of degrees of freedom ndf
.
Computes chi-squared upper tail probability, i.e. the probability that an observation, correctly described by a model with nrDOF, will give rise to a chi-squared larger than the one observed. From this, one can interpret this probability as how likely it is to observe as high (or higher) a chi-squared.
Also computes the natural logarithm of that probability, useful to compare very unlikely events, for which the probability is rounded off to 0.
Definition at line 20 of file ChiSquared.h.
|
inline |
Definition at line 24 of file ChiSquared.h.
float ChiSquared::degreesOfFreedom | ( | ) | const |
Definition at line 11 of file ChiSquared.cc.
References theNDF.
Referenced by lnProbability(), and probability().
float ChiSquared::lnProbability | ( | ) | const |
Definition at line 23 of file ChiSquared.cc.
References degreesOfFreedom(), LnChiSquaredProbability(), and value().
float ChiSquared::probability | ( | ) | const |
Definition at line 17 of file ChiSquared.cc.
References ChiSquaredProbability(), degreesOfFreedom(), and value().
float ChiSquared::value | ( | ) | const |
Definition at line 5 of file ChiSquared.cc.
References theValue.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), lnProbability(), and probability().
|
private |
Definition at line 33 of file ChiSquared.h.
Referenced by degreesOfFreedom().
|
private |
Definition at line 33 of file ChiSquared.h.
Referenced by value().