![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
the class for computing the log2 of the parametric complexity of an r-ary multinomial variableThis class enables to compute the log in base 2 of the parametric complexity of a single r-ary multinomial variable, i.e., the log in base 2 of the C_N^r term used by NML scores in Bayesian network structure learning algorithm (see, e.g., Silander, Roos, Kontkanen and Myllymaki (2007) "Factorized Normalized Maximum " Likelihood Criterion for Learning Bayesian network Structures)" More...
#include <variableLog2ParamComplexity.h>
Inherits ALLOC< double >.
Public Member Functions | |
Constructors / Destructors | |
VariableLog2ParamComplexity (const allocator_type &alloc=allocator_type()) | |
default constructor More... | |
VariableLog2ParamComplexity (const VariableLog2ParamComplexity &from) | |
copy constructor More... | |
VariableLog2ParamComplexity (const VariableLog2ParamComplexity &from, const allocator_type &alloc) | |
copy constructor with a given allocator More... | |
VariableLog2ParamComplexity (VariableLog2ParamComplexity &&from) | |
move constructor More... | |
VariableLog2ParamComplexity (VariableLog2ParamComplexity &&from, const allocator_type &alloc) | |
move constructor with a given allocator More... | |
virtual VariableLog2ParamComplexity * | clone () const |
virtual copy constructor More... | |
virtual VariableLog2ParamComplexity * | clone (const allocator_type &alloc) const |
virtual copy constructor with a given allocator More... | |
virtual | ~VariableLog2ParamComplexity () |
destructor More... | |
Operators | |
VariableLog2ParamComplexity & | operator= (const VariableLog2ParamComplexity &from) |
copy operator More... | |
VariableLog2ParamComplexity & | operator= (VariableLog2ParamComplexity &&from) |
move operator More... | |
Accessors / Modifiers | |
double | log2Cnr (const std::size_t r, const double n) |
returns the value of the log in base 2 of Cnr More... | |
void | CnrToFile (const std::string &filename) |
the function used to write the cpp file with the values of log2(Cnr) More... | |
void | useCache (const bool on_off) |
indicates whether we wish to use a cache for the Cnr More... | |
void | clearCache () |
clears the current cache More... | |
allocator_type | getAllocator () const |
returns the allocator used by the parameterized complexity class More... | |
Public Types | |
using | allocator_type = ALLOC< double > |
type for the allocators passed in arguments of methods More... | |
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable
This class enables to compute the log in base 2 of the parametric complexity of a single r-ary multinomial variable, i.e., the log in base 2 of the C_N^r term used by NML scores in Bayesian network structure learning algorithm (see, e.g., Silander, Roos, Kontkanen and Myllymaki (2007) "Factorized Normalized Maximum " Likelihood Criterion for Learning Bayesian network Structures)"
Definition at line 67 of file variableLog2ParamComplexity.h.
using gum::VariableLog2ParamComplexity< ALLOC >::allocator_type = ALLOC< double > |
type for the allocators passed in arguments of methods
Definition at line 70 of file variableLog2ParamComplexity.h.
gum::VariableLog2ParamComplexity< ALLOC >::VariableLog2ParamComplexity | ( | const allocator_type & | alloc = allocator_type() | ) |
default constructor
gum::VariableLog2ParamComplexity< ALLOC >::VariableLog2ParamComplexity | ( | const VariableLog2ParamComplexity< ALLOC > & | from | ) |
copy constructor
gum::VariableLog2ParamComplexity< ALLOC >::VariableLog2ParamComplexity | ( | const VariableLog2ParamComplexity< ALLOC > & | from, |
const allocator_type & | alloc | ||
) |
copy constructor with a given allocator
gum::VariableLog2ParamComplexity< ALLOC >::VariableLog2ParamComplexity | ( | VariableLog2ParamComplexity< ALLOC > && | from | ) |
move constructor
gum::VariableLog2ParamComplexity< ALLOC >::VariableLog2ParamComplexity | ( | VariableLog2ParamComplexity< ALLOC > && | from, |
const allocator_type & | alloc | ||
) |
move constructor with a given allocator
|
virtual |
destructor
void gum::VariableLog2ParamComplexity< ALLOC >::clearCache | ( | ) |
clears the current cache
|
virtual |
virtual copy constructor
|
virtual |
virtual copy constructor with a given allocator
void gum::VariableLog2ParamComplexity< ALLOC >::CnrToFile | ( | const std::string & | filename | ) |
the function used to write the cpp file with the values of log2(Cnr)
allocator_type gum::VariableLog2ParamComplexity< ALLOC >::getAllocator | ( | ) | const |
returns the allocator used by the parameterized complexity class
double gum::VariableLog2ParamComplexity< ALLOC >::log2Cnr | ( | const std::size_t | r, |
const double | n | ||
) |
returns the value of the log in base 2 of Cnr
VariableLog2ParamComplexity& gum::VariableLog2ParamComplexity< ALLOC >::operator= | ( | const VariableLog2ParamComplexity< ALLOC > & | from | ) |
copy operator
VariableLog2ParamComplexity& gum::VariableLog2ParamComplexity< ALLOC >::operator= | ( | VariableLog2ParamComplexity< ALLOC > && | from | ) |
move operator
void gum::VariableLog2ParamComplexity< ALLOC >::useCache | ( | const bool | on_off | ) |
indicates whether we wish to use a cache for the Cnr
|
private |
Definition at line 167 of file variableLog2ParamComplexity.h.
|
private |
Definition at line 159 of file variableLog2ParamComplexity.h.
|
private |
Definition at line 160 of file variableLog2ParamComplexity.h.
|
private |
Definition at line 161 of file variableLog2ParamComplexity.h.
|
private |
the value of N above which we should use Szpankowski's approximation
Definition at line 144 of file variableLog2ParamComplexity.h.
|
private |
Definition at line 164 of file variableLog2ParamComplexity.h.