27 #ifndef GUM_LEARNING_A_PRIORI_SMOOTHING_H 28 #define GUM_LEARNING_A_PRIORI_SMOOTHING_H 32 #include <agrum/agrum.h> 33 #include <agrum/BN/learning/aprioris/apriori.h> 44 template <
template <
typename >
class ALLOC = std::allocator >
80 AprioriSmoothing(
const AprioriSmoothing< ALLOC >& from,
const allocator_type& alloc);
86 AprioriSmoothing(AprioriSmoothing< ALLOC >&& from,
const allocator_type& alloc);
120 virtual bool isOfType(
const std::string& type)
final;
142 std::vector<
double, ALLOC<
double > >& counts)
final;
150 std::vector<
double, ALLOC<
double > >& counts)
final;
160 #include <agrum/BN/learning/aprioris/aprioriSmoothing_tpl.h> virtual AprioriSmoothing< ALLOC > * clone(const allocator_type &alloc) const
virtual copy constructor with a given allocator
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 ...
INLINE void emplace(Args &&... args)
AprioriSmoothing(AprioriSmoothing< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
AprioriSmoothing(const AprioriSmoothing< ALLOC > &from)
copy constructor
virtual bool isOfType(const std::string &type) final
indicates whether an apriori is of a certain type
virtual bool isInformative() const final
indicates whether the apriori is potentially informative
AprioriSmoothing(AprioriSmoothing< ALLOC > &&from)
move constructor
virtual AprioriSmoothing< ALLOC > * clone() const
virtual copy constructor
virtual ~AprioriSmoothing()
destructor
virtual const std::string & getType() const final
returns the type of the apriori
AprioriSmoothing(const AprioriSmoothing< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
AprioriSmoothing< ALLOC > & operator=(AprioriSmoothing< ALLOC > &&from)
move operator
AprioriSmoothing< ALLOC > & operator=(const AprioriSmoothing< ALLOC > &from)
copy operator
the smooth a priori: adds a weight w to all the countings
AprioriSmoothing(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
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
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