49#ifndef GUM_LEARNING_K_NML_H
50#define GUM_LEARNING_K_NML_H
97 const std::vector< std::pair< std::size_t, std::size_t > >&
ranges,
175#ifndef DOXYGEN_SHOULD_SKIP_THIS
Common counting infrastructure for independence tests and KNML scoring.
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
CachedContingencyCounter(const DBRowGeneratorParser &parser, const Prior &prior, const std::vector< std::pair< std::size_t, std::size_t > > &ranges, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set.
KNML & operator=(KNML &&from)
move operator
KNML(const DBRowGeneratorParser &parser, const Prior &prior, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
KNML & operator=(const KNML &from)
copy operator
KNML(const DBRowGeneratorParser &parser, const Prior &prior, const std::vector< std::pair< std::size_t, std::size_t > > &ranges, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
void clearCache() override
clears the current C_n^r cache
~KNML() override
destructor
void clear() override
clears all the data structures from memory, including the C_n^r cache
KNML(const KNML &from)
copy constructor
void useCache(const bool on_off) override
turn on/off the use of the C_n^r cache
virtual KNML * clone() const
virtual copy constructor
double score(NodeId var1, NodeId var2, const std::vector< NodeId > &rhs_ids)
returns the kNML penalty for a pair of nodes given conditioning nodes
KNML(KNML &&from)
move constructor
double score(NodeId var1, NodeId var2)
returns the kNML penalty for a pair of nodes
the base class for all a priori
Size NodeId
Type for node ids.
The class for the NML penalty used in MIIC.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable