![]() |
aGrUM
0.16.0
|
The class for computing Log2 (Gamma(x)) More...
#include <agrum/core/math/gammaLog2.h>
Public Member Functions | |
Constructors / Destructors | |
GammaLog2 (bool requires_precision=false) | |
Default constructor. More... | |
GammaLog2 (const GammaLog2 &from) | |
Copy constructor. More... | |
GammaLog2 (GammaLog2 &&from) | |
Move constructor. More... | |
~GammaLog2 () | |
Class destructor. More... | |
Operators | |
double | operator() (double x) const |
Returns log2 ( gamma (x) ) for x > 0. More... | |
void | setPrecision (bool p) |
Sets whether we need more precision for small values. More... | |
double | gammaLog2 (double x) const |
Returns log2 ( gamma (x) ) for x >= 0. More... | |
The class for computing Log2 (Gamma(x))
Definition at line 48 of file gammaLog2.h.
gum::GammaLog2::GammaLog2 | ( | bool | requires_precision = false | ) |
Default constructor.
requires_precision | Set if precision is required or not. |
Definition at line 39 of file gammaLog2.cpp.
gum::GammaLog2::GammaLog2 | ( | const GammaLog2 & | from | ) |
Copy constructor.
from | The gum::GammaLog2 to copy. |
Definition at line 45 of file gammaLog2.cpp.
References __requires_precision.
gum::GammaLog2::GammaLog2 | ( | GammaLog2 && | from | ) |
Move constructor.
from | The gum::GammaLog2 to move. |
Definition at line 51 of file gammaLog2.cpp.
gum::GammaLog2::~GammaLog2 | ( | ) |
Class destructor.
Definition at line 57 of file gammaLog2.cpp.
References __small_values.
Returns log2 ( gamma (x) ) for x >= 0.
x | A positive double. |
OutOfBounds | Raised if x <= 0. |
Definition at line 32 of file gammaLog2_inl.h.
References __1log2, __log_sqrt_2pi, __requires_precision, __small_values, and GUM_ERROR.
Referenced by operator()().
Returns log2 ( gamma (x) ) for x > 0.
OutOfBounds | Raised if raised if x <= 0. |
Definition at line 55 of file gammaLog2_inl.h.
References gammaLog2().
INLINE void gum::GammaLog2::setPrecision | ( | bool | p | ) |
Sets whether we need more precision for small values.
p | If true, precision is enable. |
Definition at line 59 of file gammaLog2_inl.h.
References __requires_precision.
The value of 1 / std::log(2).
Definition at line 117 of file gammaLog2.h.
Referenced by gammaLog2().
|
staticprivate |
The value of std::log ( std::sqrt(2pi) ).
Definition at line 120 of file gammaLog2.h.
Referenced by gammaLog2().
|
private |
Indicates whether we need more precision for small values.
Definition at line 114 of file gammaLog2.h.
Referenced by GammaLog2(), gammaLog2(), and setPrecision().
|
staticprivate |
The 5000 values from 0 to 50 by step of 1/100.
Definition at line 123 of file gammaLog2.h.
Referenced by gammaLog2(), and ~GammaLog2().