31 #ifndef GUM_CHI_SQUARE_H 32 # define GUM_CHI_SQUARE_H 34 # include <agrum/tools/core/math/math_utils.h> 35 # include <agrum/tools/core/hashTable.h> 50 static double probaChi2(
double x, Size df);
69 static constexpr double I_SQRT_PI__ = 0.5641895835477562869480795;
72 static constexpr double BIGX__ = 20.0;
80 static double exp__(
double x) {
return (((x) < -BIGX__) ? 0.0 : exp(x)); }
static constexpr double I_SQRT_PI__
1 / sqrt (pi)
static constexpr double CHI_EPSILON__
accuracy of critchi approximation
INLINE void emplace(Args &&... args)
static constexpr double BIGX__
max value to represent exp (x)
static double probaChi2(double x, Size df)
computes the probability of chi2 value (used by the cache)
static constexpr double Z_MAX__
Required constant to compute the cdf.
static constexpr double LOG_SQRT_PI__
log (sqrt (pi))
static constexpr double CHI_MAX__
maximum chi square value
static double probaZValue__(double z)
computes the probability of normal z value (used by the cache)
static double exp__(double x)
Required constant to compute the cdf.
<agrum/FMDP/learning/core/testPolicy/chiSquare.h>