27 #ifndef GUM_LEARNING_A_PRIORI_K2_H 28 #define GUM_LEARNING_A_PRIORI_K2_H 32 #include <agrum/agrum.h> 33 #include <agrum/BN/learning/aprioris/aprioriSmoothing.h> 50 template <
template <
typename >
class ALLOC = std::allocator >
77 AprioriK2(
const DatabaseTable< ALLOC >& database,
83 AprioriK2(
const AprioriK2< ALLOC >& from);
86 AprioriK2(
const AprioriK2< ALLOC >& from,
const allocator_type& alloc);
92 AprioriK2(AprioriK2< ALLOC >&& from,
const allocator_type& alloc);
126 virtual void setWeight(
const double weight)
final;
136 #include <agrum/BN/learning/aprioris/aprioriK2_tpl.h> AprioriK2(const AprioriK2< ALLOC > &from)
copy constructor
INLINE void emplace(Args &&... args)
AprioriK2(AprioriK2< ALLOC > &&from)
move constructor
virtual void setWeight(const double weight) final
dummy set weight function: in K2, weights are always equal to 1
AprioriK2(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 AprioriK2< ALLOC > * clone() const
virtual copy constructor
virtual ~AprioriK2()
destructor
AprioriK2< ALLOC > & operator=(const AprioriK2< ALLOC > &from)
copy operator
AprioriK2(const AprioriK2< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
AprioriK2(AprioriK2< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
the internal apriori for the K2 score = Laplace AprioriK2 is a BD score with a Laplace apriori (i...
virtual AprioriK2< ALLOC > * clone(const allocator_type &alloc) const
virtual copy constructor with a given allocator
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)
AprioriK2< ALLOC > & operator=(AprioriK2< ALLOC > &&from)
move operator