49#ifndef DOXYGEN_SHOULD_SKIP_THIS
59 const std::vector< std::pair< std::size_t, std::size_t > >& ranges,
60 const Bijection< NodeId, std::size_t >& nodeId2columns) :
62 _domain_sizes_(parser.database().domainSizes()), _chi2_(_domain_sizes_) {
63 GUM_CONSTRUCTOR(IndepTestG2);
67 INLINE IndepTestG2::IndepTestG2(
const DBRowGeneratorParser& parser,
69 const Bijection< NodeId, std::size_t >& nodeId2columns) :
70 IndependenceTest(parser, prior, nodeId2columns),
71 _domain_sizes_(parser.database().domainSizes()), _chi2_(_domain_sizes_) {
72 GUM_CONSTRUCTOR(IndepTestG2);
76 INLINE IndepTestG2::IndepTestG2(
const IndepTestG2& from) :
77 IndependenceTest(from), _chi2_(_domain_sizes_) {
78 GUM_CONS_CPY(IndepTestG2);
82 INLINE IndepTestG2::IndepTestG2(IndepTestG2&& from) :
83 IndependenceTest(
std::move(from)), _domain_sizes_(from._domain_sizes_),
84 _chi2_(_domain_sizes_) {
85 GUM_CONS_MOV(IndepTestG2);
89 INLINE IndepTestG2* IndepTestG2::clone()
const {
return new IndepTestG2(*
this); }
92 INLINE IndepTestG2::~IndepTestG2() { GUM_DESTRUCTOR(IndepTestG2); }
95 INLINE std::pair< double, double >
96 IndepTestG2::statistics(NodeId var1, NodeId var2,
const std::vector< NodeId >& rhs_ids) {
97 return statistics_(IdCondSet(var1, var2, rhs_ids,
false));
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
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
The base class for all the independence tests used for learning.
the base class for all a priori
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities