49#ifndef GUM_VARIABLE_LOG2_PARAM_COMPLEXITY_H
50#define GUM_VARIABLE_LOG2_PARAM_COMPLEXITY_H
132 double log2Cnr(
const std::size_t r,
const double n);
135 void CnrToFile(
const std::string& filename);
The class for generic Hash Tables.
void CnrToFile(const std::string &filename)
the function used to write the cpp file with the values of log2(Cnr)
VariableLog2ParamComplexity(VariableLog2ParamComplexity &&from)
move constructor
void useCache(const bool on_off)
indicates whether we wish to use a cache for the Cnr
const double _cst1_
the value of N above which we should use Szpankowski's approximation
VariableLog2ParamComplexity & operator=(VariableLog2ParamComplexity &&from)
move operator
VariableLog2ParamComplexity & operator=(const VariableLog2ParamComplexity &from)
copy operator
double log2Cnr(const std::size_t r, const double n)
returns the value of the log in base 2 of Cnr
virtual VariableLog2ParamComplexity * clone() const
virtual copy constructor
VariableLog2ParamComplexity()
default constructor
void clearCache()
clears the current cache
virtual ~VariableLog2ParamComplexity()
destructor
HashTable< std::pair< std::size_t, double >, double > _cache_
VariableLog2ParamComplexity(const VariableLog2ParamComplexity &from)
copy constructor
Class hash tables iterators.
gum is the global namespace for all aGrUM entities
constexpr std::size_t VariableLog2ParamComplexityCTableNSize
const double VariableLog2ParamComplexityCTable[4][1000]
constexpr std::size_t VariableLog2ParamComplexityCTableRSize
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable