![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/learning/core/testPolicy/chiSquare.h> More...
#include <chiSquare.h>
Static Public Member Functions | |
| static double | probaChi2 (double x, Size df) |
| computes the probability of chi2 value (used by the cache) | |
Static Private Member Functions | |
| static double | _exp_ (double x) |
| Required constant to compute the cdf. | |
| static double | _probaZValue_ (double z) |
| computes the probability of normal z value (used by the cache) | |
Static Private Attributes | |
| static constexpr double | _Z_MAX_ = 6.0 |
| Required constant to compute the cdf. | |
| static constexpr double | _CHI_EPSILON_ = 0.000001 |
| accuracy of critchi approximation | |
| static constexpr double | _CHI_MAX_ = 99999.0 |
| maximum chi square value | |
| static constexpr double | _LOG_SQRT_PI_ = 0.5723649429247000870717135 |
| log (sqrt (pi)) | |
| static constexpr double | _I_SQRT_PI_ = 0.5641895835477562869480795 |
| 1 / sqrt (pi) | |
| static constexpr double | _BIGX_ = 20.0 |
| max value to represent exp (x) | |
<agrum/FMDP/learning/core/testPolicy/chiSquare.h>
Definition at line 68 of file chiSquare.h.
Required constant to compute the cdf.
Definition at line 100 of file chiSquare.h.
References _BIGX_.
Referenced by probaChi2().
computes the probability of normal z value (used by the cache)
Definition at line 64 of file chiSquare.cpp.
References _Z_MAX_.
Referenced by probaChi2().
computes the probability of chi2 value (used by the cache)
Definition at line 133 of file chiSquare.cpp.
References _BIGX_, _exp_(), _I_SQRT_PI_, _LOG_SQRT_PI_, and _probaZValue_().
Referenced by gum::LeafPair::likelyhood(), gum::Chi2TestPolicy< GUM_SCALAR >::score(), and gum::GTestPolicy< GUM_SCALAR >::score().
|
staticconstexprprivate |
max value to represent exp (x)
Definition at line 92 of file chiSquare.h.
Referenced by _exp_(), and probaChi2().
|
staticconstexprprivate |
accuracy of critchi approximation
Definition at line 80 of file chiSquare.h.
|
staticconstexprprivate |
maximum chi square value
Definition at line 83 of file chiSquare.h.
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
Required constant to compute the cdf.
maximum meaningful z value
Definition at line 77 of file chiSquare.h.
Referenced by _probaZValue_().