48#ifndef GUM_LEARNING_INDEP_TEST_CHI2_H
49#define GUM_LEARNING_INDEP_TEST_CHI2_H
95 const Prior& external_prior,
96 const std::vector< std::pair< std::size_t, std::size_t > >&
ranges,
156 std::pair< double, double >
172#ifndef DOXYGEN_SHOULD_SKIP_THIS
176 std::vector< std::size_t > _domain_sizes_;
182 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.
IndepTestChi2 & operator=(IndepTestChi2 &&from)
move operator
IndepTestChi2 & operator=(const IndepTestChi2 &from)
copy operator
std::pair< double, double > statistics_(const IdCondSet &idset)
compute the pair <chi2 statistic,pvalue>
virtual ~IndepTestChi2()
destructor
virtual IndepTestChi2 * clone() const
virtual copy constructor
IndepTestChi2(IndepTestChi2 &&from)
move constructor
virtual double score_(const IdCondSet &idset) final
returns the score for a given IdCondSet
IndepTestChi2(const IndepTestChi2 &from)
copy constructor
IndepTestChi2(const DBRowGeneratorParser &parser, const Prior &prior, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
IndepTestChi2(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 <chi2 statistic,pvalue> for a test var1 indep var2 given rhs_ids
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 Chi2 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