51#ifndef DOXYGEN_SHOULD_SKIP_THIS
61 const std::vector< std::pair< std::size_t, std::size_t > >& ranges,
62 const Bijection< NodeId, std::size_t >& nodeId2columns) :
64 GUM_CONSTRUCTOR(IndepTestG2);
68 INLINE IndepTestG2::IndepTestG2(
const DBRowGeneratorParser& parser,
70 const Bijection< NodeId, std::size_t >& nodeId2columns) :
71 IndependenceTest(parser, prior, nodeId2columns) {
72 GUM_CONSTRUCTOR(IndepTestG2);
76 INLINE IndepTestG2::IndepTestG2(
const IndepTestG2& from) : IndependenceTest(from) {
77 GUM_CONS_CPY(IndepTestG2);
81 INLINE IndepTestG2::IndepTestG2(IndepTestG2&& from) noexcept :
82 IndependenceTest(std::move(from)) {
83 GUM_CONS_MOV(IndepTestG2);
87 INLINE IndepTestG2* IndepTestG2::clone()
const {
return new IndepTestG2(*
this); }
90 INLINE IndepTestG2::~IndepTestG2() { GUM_DESTRUCTOR(IndepTestG2); }
93 INLINE std::pair< double, double >
94 IndepTestG2::statistics(NodeId var1, NodeId var2,
const std::vector< NodeId >& rhs_ids) {
95 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
the class for computing G2 scores
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities