25 #ifndef DOXYGEN_SHOULD_SKIP_THIS 32 template <
template <
typename >
class ALLOC >
34 const DatabaseTable< ALLOC >& database,
35 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
39 _database(&database), _nodeId2columns(nodeId2columns) {
45 template <
template <
typename >
class ALLOC >
47 const Apriori< ALLOC >& from,
57 template <
template <
typename >
class ALLOC >
63 template <
template <
typename >
class ALLOC >
65 Apriori< ALLOC >&& from,
75 template <
template <
typename >
class ALLOC >
81 template <
template <
typename >
class ALLOC >
88 template <
template <
typename >
class ALLOC >
100 template <
template <
typename >
class ALLOC >
112 template <
template <
typename >
class ALLOC >
116 "A negative weight (" << weight
117 <<
") is forbidden for an apriori");
124 template <
template <
typename >
class ALLOC >
131 template <
template <
typename >
class ALLOC >
virtual void setWeight(const double weight)
sets the weight of the a priori (kind of effective sample size)
gum is the global namespace for all aGrUM entities
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