30 #ifndef GUM_VARIABLE_LOG2_PARAM_COMPLEXITY_H 31 #define GUM_VARIABLE_LOG2_PARAM_COMPLEXITY_H 67 template <
template <
typename >
class ALLOC = std::allocator >
128 double log2Cnr(
const std::size_t r,
const double n);
131 void CnrToFile(
const std::string& filename);
VariableLog2ParamComplexity(const allocator_type &alloc=allocator_type())
default constructor
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const double __Szpankowski_threshold
the value of N above which we should use Szpankowski's approximation
virtual VariableLog2ParamComplexity * clone() const
virtual copy constructor
allocator_type getAllocator() const
returns the allocator used by the parameterized complexity class
const double VariableLog2ParamComplexityCTable[4][1000]
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
HashTable< std::pair< std::size_t, double >, double > __cache
constexpr std::size_t VariableLog2ParamComplexityCTableRSize
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
void useCache(const bool on_off)
indicates whether we wish to use a cache for the Cnr
void CnrToFile(const std::string &filename)
the function used to write the cpp file with the values of log2(Cnr)
constexpr std::size_t VariableLog2ParamComplexityCTableNSize
ALLOC< double > allocator_type
type for the allocators passed in arguments of methods
virtual ~VariableLog2ParamComplexity()
destructor
the class for computing the log2 of the parametric complexity of an r-ary multinomial variableThis cl...
VariableLog2ParamComplexity & operator=(const VariableLog2ParamComplexity &from)
copy operator
void clearCache()
clears the current cache
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
double log2Cnr(const std::size_t r, const double n)
returns the value of the log in base 2 of Cnr