51#ifndef GUM_CHI_SQUARE_H
52# define GUM_CHI_SQUARE_H
89 static constexpr double _I_SQRT_PI_ = 0.5641895835477562869480795;
92 static constexpr double _BIGX_ = 20.0;
100 static double _exp_(
double x) {
return (((x) < -
_BIGX_) ? 0.0 : exp(x)); }
<agrum/FMDP/learning/core/testPolicy/chiSquare.h>
static double _exp_(double x)
Required constant to compute the cdf.
static constexpr double _CHI_MAX_
maximum chi square value
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)
static constexpr double _CHI_EPSILON_
accuracy of critchi approximation
static constexpr double _I_SQRT_PI_
1 / sqrt (pi)
static constexpr double _Z_MAX_
Required constant to compute the cdf.
static constexpr double _LOG_SQRT_PI_
log (sqrt (pi))
static constexpr double _BIGX_
max value to represent exp (x)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Class hash tables iterators.
gum is the global namespace for all aGrUM entities