26 #ifndef GUM_LEARNING_INDEP_TEST_G2_H 27 #define GUM_LEARNING_INDEP_TEST_G2_H 44 template <
template <
typename >
class ALLOC = std::allocator >
81 const std::vector< std::pair< std::size_t, std::size_t >,
82 ALLOC< std::pair< std::size_t, std::size_t > > >&
158 #ifndef DOXYGEN_SHOULD_SKIP_THIS 162 std::vector< std::size_t, ALLOC< std::size_t > > __domain_sizes;
168 const std::vector< Idx > __empty_set;
178 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
the base class for all the independence tests used for learning
The base class for all the independence tests used for learning.
virtual IndepTestG2< ALLOC > * clone() const
virtual copy constructor
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
IndepTestG2(const DBRowGeneratorParser< ALLOC > &parser, const Apriori< ALLOC > &external_apriori, const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > &ranges, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
the no a priori class: corresponds to 0 weight-sample
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set...
the base class for all a priori
const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > & ranges() const
returns the current ranges
gum is the global namespace for all aGrUM entities
the class for computing G2 independence test scores
Represent the chi2 distribution.
Set of pairs of elements with fast search for both elements.
the class for computing G2 scores
The class that represents the chi2 distribution.
virtual ~IndepTestG2()
destructor
IndepTestG2< ALLOC > & operator=(const IndepTestG2< ALLOC > &from)
copy operator
virtual double _score(const IdSet< ALLOC > &idset) final
returns the score for a given IdSet
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
Size NodeId
Type for node ids.