![]() |
aGrUM
0.21.0
a C++ library for (probabilistic) graphical models
|
The class for computing Log2 (Gamma(x)) More...
#include <agrum/tools/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 47 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 38 of file gammaLog2.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::GammaLog2::GammaLog2 | ( | const GammaLog2 & | from | ) |
Copy constructor.
from | The gum::GammaLog2 to copy. |
Definition at line 43 of file gammaLog2.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::GammaLog2::GammaLog2 | ( | GammaLog2 && | from | ) |
Move constructor.
from | The gum::GammaLog2 to move. |
Definition at line 48 of file gammaLog2.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::GammaLog2::~GammaLog2 | ( | ) |
Class destructor.
Definition at line 53 of file gammaLog2.cpp.
References gum::Set< Key, Alloc >::emplace().
Returns log2 ( gamma (x) ) for x >= 0.
x | A positive double. |
OutOfBounds | Raised if x <= 0. |
Definition at line 31 of file gammaLog2_inl.h.
References gum::Set< Key, Alloc >::emplace().
Returns log2 ( gamma (x) ) for x > 0.
OutOfBounds | Raised if raised if x <= 0. |
Definition at line 56 of file gammaLog2_inl.h.
References gum::Set< Key, Alloc >::emplace().
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 58 of file gammaLog2_inl.h.
References gum::Set< Key, Alloc >::emplace().
The value of 1 / std::log(2).
Definition at line 116 of file gammaLog2.h.
|
staticprivate |
The value of std::log ( std::sqrt(2pi) ).
Definition at line 119 of file gammaLog2.h.
|
private |
Indicates whether we need more precision for small values.
Definition at line 113 of file gammaLog2.h.
|
staticprivate |
The 5000 values from 0 to 50 by step of 1/100.
Definition at line 122 of file gammaLog2.h.