58 const Idx index = int(x * 100);
62 const Idx index = int(x * 100 + 0.5);
68 return std::log2(1.0 / x);
static constexpr double _log_sqrt_2pi_
The value of std::log ( std::sqrt(2pi) ).
static constexpr double _inv_log2_
The value of 1 / std::log(2).
bool _requires_precision_
Indicates whether we need more precision for small values.
double gammaLog2(double x) const
Returns log2 ( gamma (x) ) for x >= 0.
static const std::vector< double > _small_values_
The 5000 values from 0 to 50 by step of 1/100.
double operator()(double x) const
Returns log2 ( gamma (x) ) for x > 0.
void setPrecision(bool p)
Sets whether we need more precision for small values.
Exception : out of bound.
#define GUM_ERROR(type, msg)
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities