27 #ifndef GUM_LEARNING_A_PRIORI_NO_APRIORI_H 28 #define GUM_LEARNING_A_PRIORI_NO_APRIORI_H 32 #include <agrum/agrum.h> 33 #include <agrum/BN/learning/aprioris/apriori.h> 44 template <
template <
typename >
class ALLOC = std::allocator >
80 AprioriNoApriori(
const AprioriNoApriori< ALLOC >& from,
const allocator_type& alloc);
86 AprioriNoApriori(AprioriNoApriori< ALLOC >&& from,
const allocator_type& alloc);
120 virtual void setWeight(
const double weight)
final;
123 virtual bool isOfType(
const std::string& type)
final;
145 std::vector<
double, ALLOC<
double > >& counts)
final;
153 std::vector<
double, ALLOC<
double > >& counts)
final;
163 #include <agrum/BN/learning/aprioris/aprioriNoApriori_tpl.h> AprioriNoApriori< ALLOC > & operator=(const AprioriNoApriori< ALLOC > &from)
copy operator
virtual AprioriNoApriori< ALLOC > * clone(const allocator_type &alloc) const
virtual copy constructor with a given allocator
virtual bool isOfType(const std::string &type) final
indicates whether an apriori is of a certain type
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
INLINE void emplace(Args &&... args)
virtual void addAllApriori(const IdCondSet< ALLOC > &idset, std::vector< double, ALLOC< double > > &counts) final
adds the apriori to a counting vector corresponding to the idset
AprioriNoApriori(AprioriNoApriori< ALLOC > &&from)
move constructor
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)
AprioriNoApriori(const AprioriNoApriori< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
AprioriNoApriori(const AprioriNoApriori< ALLOC > &from)
copy constructor
AprioriNoApriori< ALLOC > & operator=(AprioriNoApriori< ALLOC > &&from)
move operator
virtual void addConditioningApriori(const IdCondSet< ALLOC > &idset, std::vector< double, ALLOC< double > > &counts) final
adds the apriori to a counting vectordefined over the right hand side of the idset ...
virtual ~AprioriNoApriori()
destructor
virtual AprioriNoApriori< ALLOC > * clone() const
virtual copy constructor
AprioriNoApriori(AprioriNoApriori< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
the no a priori class: corresponds to 0 weight-sample