28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 36 template <
template <
typename >
class ALLOC >
38 const DatabaseTable< ALLOC >& database,
39 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
42 Apriori< ALLOC >(database, nodeId2columns, alloc) {
49 template <
template <
typename >
class ALLOC >
51 const AprioriNoApriori< ALLOC >& from,
59 template <
template <
typename >
class ALLOC >
61 const AprioriNoApriori< ALLOC >& from) :
66 template <
template <
typename >
class ALLOC >
68 AprioriNoApriori< ALLOC >&& from,
76 template <
template <
typename >
class ALLOC >
78 AprioriNoApriori< ALLOC >&& from) :
83 template <
template <
typename >
class ALLOC >
86 ALLOC< AprioriNoApriori< ALLOC > > allocator(alloc);
87 AprioriNoApriori< ALLOC >* apriori = allocator.allocate(1);
89 allocator.construct(apriori, *
this, alloc);
91 allocator.deallocate(apriori, 1);
100 template <
template <
typename >
class ALLOC >
107 template <
template <
typename >
class ALLOC >
114 template <
template <
typename >
class ALLOC >
116 operator=(
const AprioriNoApriori< ALLOC >& from) {
123 template <
template <
typename >
class ALLOC >
125 operator=(AprioriNoApriori< ALLOC >&& from) {
132 template <
template <
typename >
class ALLOC >
137 template <
template <
typename >
class ALLOC >
144 template <
template <
typename >
class ALLOC >
151 template <
template <
typename >
class ALLOC >
158 template <
template <
typename >
class ALLOC >
160 const IdSet< ALLOC >& idset,
161 std::vector<
double, ALLOC< double > >& counts) {}
165 template <
template <
typename >
class ALLOC >
167 const IdSet< ALLOC >& idset,
168 std::vector<
double, ALLOC< double > >& counts) {}
AprioriNoApriori< ALLOC > & operator=(const AprioriNoApriori< ALLOC > &from)
copy operator
virtual bool isOfType(const std::string &type) final
indicates whether an apriori is of a certain type
virtual void setWeight(const double weight)
sets the weight of the a priori (kind of effective sample size)
AprioriNoApriori(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
virtual const std::string & getType() const final
returns the type of the apriori
static const std::string type
static bool isOfType(const std::string &t)
virtual void addAllApriori(const IdSet< ALLOC > &idset, std::vector< double, ALLOC< double > > &counts) final
adds the apriori to a counting vector corresponding to the idset
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
AprioriNoAprioriType type
the type of the a priori
virtual bool isInformative() const final
indicates whether the apriori is potentially informative
virtual void setWeight(const double weight) final
sets the weight of the a priori (kind of effective sample size)
Apriori< ALLOC > & operator=(const Apriori< ALLOC > &from)
copy operator
allocator_type getAllocator() const
returns the allocator used by the internal apriori
virtual ~AprioriNoApriori()
destructor
virtual AprioriNoApriori< ALLOC > * clone() const
virtual copy constructor
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
virtual void addConditioningApriori(const IdSet< ALLOC > &idset, std::vector< double, ALLOC< double > > &counts) final
adds the apriori to a counting vectordefined over the right hand side of the idset ...