28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 35 template <
template <
typename >
class ALLOC >
37 const DatabaseTable< ALLOC >& database,
38 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
42 _database(&database), _nodeId2columns(nodeId2columns) {
48 template <
template <
typename >
class ALLOC >
50 const Apriori< ALLOC >& from,
60 template <
template <
typename >
class ALLOC >
66 template <
template <
typename >
class ALLOC >
68 Apriori< ALLOC >&& from,
78 template <
template <
typename >
class ALLOC >
84 template <
template <
typename >
class ALLOC >
91 template <
template <
typename >
class ALLOC >
103 template <
template <
typename >
class ALLOC >
115 template <
template <
typename >
class ALLOC >
119 "A negative weight (" << weight
120 <<
") is forbidden for an apriori");
127 template <
template <
typename >
class ALLOC >
134 template <
template <
typename >
class ALLOC >
virtual void setWeight(const double weight)
sets the weight of the a priori (kind of effective sample size)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const DatabaseTable< ALLOC > * _database
a reference to the database in order to have access to its variables
double weight() const
returns the weight assigned to the apriori
double _weight
the weight of the apriori
Apriori< ALLOC > & operator=(const Apriori< ALLOC > &from)
copy operator
allocator_type getAllocator() const
returns the allocator used by the internal apriori
Bijection< NodeId, std::size_t, ALLOC< std::size_t > > _nodeId2columns
a mapping from the NodeIds of the variables to the indices of the columns in the database ...
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
Size NodeId
Type for node ids.
Apriori(const DatabaseTable< ALLOC > &database, 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
#define GUM_ERROR(type, msg)
virtual ~Apriori()
destructor