51#ifndef DOXYGEN_SHOULD_SKIP_THIS
63 const std::vector< std::pair< std::size_t, std::size_t > >& ranges,
64 const Bijection< NodeId, std::size_t >& nodeId2columns) :
66 GUM_CONSTRUCTOR(IndepTestChi2);
70 INLINE IndepTestChi2::IndepTestChi2(
const DBRowGeneratorParser& parser,
72 const Bijection< NodeId, std::size_t >& nodeId2columns) :
73 IndependenceTest(parser, prior, nodeId2columns) {
74 GUM_CONSTRUCTOR(IndepTestChi2);
78 INLINE IndepTestChi2::IndepTestChi2(
const IndepTestChi2& from) : IndependenceTest(from) {
79 GUM_CONS_CPY(IndepTestChi2);
83 INLINE IndepTestChi2::IndepTestChi2(IndepTestChi2&& from) noexcept :
84 IndependenceTest(std::move(from)) {
85 GUM_CONS_MOV(IndepTestChi2);
89 INLINE IndepTestChi2* IndepTestChi2::clone()
const {
return new IndepTestChi2(*
this); }
92 INLINE IndepTestChi2::~IndepTestChi2() { GUM_DESTRUCTOR(IndepTestChi2); }
95 INLINE std::pair< double, double >
96 IndepTestChi2::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...
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
The base class for all the independence tests used for learning.
the base class for all a priori
A class used by learning caches to represent uniquely sets of variables.
the class for computing Chi2 scores
include the inlined functions if necessary
class GUM_SHARED_PUBLIC IdCondSet
gum is the global namespace for all aGrUM entities