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)); }
INLINE void emplace(Args &&... args)
static constexpr double _CHI_EPSILON_
accuracy of critchi approximation
static double _exp_(double x)
Required constant to compute the cdf.
static constexpr double _LOG_SQRT_PI_
log (sqrt (pi))
static constexpr double _Z_MAX_
Required constant to compute the cdf.
static constexpr double _I_SQRT_PI_
1 / sqrt (pi)
static constexpr double _CHI_MAX_
maximum chi square value
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 double _probaZValue_(double z)
computes the probability of normal z value (used by the cache)
<agrum/FMDP/learning/core/testPolicy/chiSquare.h>