48#ifndef GUM_LEARNING_INDEP_TEST_G2_H
49#define GUM_LEARNING_INDEP_TEST_G2_H
96 const Prior& external_prior,
97 const std::vector< std::pair< std::size_t, std::size_t > >&
ranges,
149 std::pair< double, double >
165#ifndef DOXYGEN_SHOULD_SKIP_THIS
169 std::vector< std::size_t > _domain_sizes_;
175 const std::vector< Idx > _empty_set_;
The class that represents the chi2 distribution.
Represent the chi2 distribution.
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.
IndepTestG2(const IndepTestG2 &from)
copy constructor
IndepTestG2(IndepTestG2 &&from)
move constructor
IndepTestG2(const DBRowGeneratorParser &parser, const Prior &prior, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
IndepTestG2 & operator=(const IndepTestG2 &from)
copy operator
IndepTestG2 & operator=(IndepTestG2 &&from)
move operator
IndepTestG2(const DBRowGeneratorParser &parser, const Prior &external_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
std::pair< double, double > statistics(NodeId var1, NodeId var2, const std::vector< NodeId > &rhs_ids={})
get the pair <G2statistic,pvalue> for a test var1 indep var2 given rhs_ids
virtual double score_(const IdCondSet &idset) final
returns the score for a given IdCondSet
virtual IndepTestG2 * clone() const
virtual copy constructor
virtual ~IndepTestG2()
destructor
std::pair< double, double > statistics_(const IdCondSet &idset)
compute the pair <G2 statistic,pvalue>
IndependenceTest(const DBRowGeneratorParser &parser, const Prior &external_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
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
the base class for all a priori
Size NodeId
Type for node ids.
the class for computing G2 scores
the base class for all the independence tests used for learning
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the no a priorclass: corresponds to 0 weight-sample