25 #ifndef DOXYGEN_SHOULD_SKIP_THIS 33 template <
template <
typename >
class ALLOC >
35 const DatabaseTable< ALLOC >& database,
36 const Bijection<
NodeId, std::size_t, ALLOC< std::size_t > >&
39 AprioriSmoothing< ALLOC >(database, nodeId2columns, alloc) {
45 template <
template <
typename >
class ALLOC >
47 const AprioriK2< ALLOC >& from,
55 template <
template <
typename >
class ALLOC >
61 template <
template <
typename >
class ALLOC >
63 AprioriK2< ALLOC >&& from,
71 template <
template <
typename >
class ALLOC >
77 template <
template <
typename >
class ALLOC >
80 ALLOC< AprioriK2< ALLOC > > allocator(alloc);
81 AprioriK2< ALLOC >* apriori = allocator.allocate(1);
83 allocator.construct(apriori, *
this, alloc);
85 allocator.deallocate(apriori, 1);
94 template <
template <
typename >
class ALLOC >
101 template <
template <
typename >
class ALLOC >
108 template <
template <
typename >
class ALLOC >
110 operator=(
const AprioriK2< ALLOC >& from) {
117 template <
template <
typename >
class ALLOC >
126 template <
template <
typename >
class ALLOC >
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
gum is the global namespace for all aGrUM entities
virtual AprioriK2< ALLOC > * clone() const
virtual copy constructor
virtual ~AprioriK2()
destructor
AprioriK2< ALLOC > & operator=(const AprioriK2< ALLOC > &from)
copy operator
double weight() const
returns the weight assigned to the apriori
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
allocator_type getAllocator() const
returns the allocator used by the internal apriori
AprioriSmoothing< ALLOC > & operator=(const AprioriSmoothing< ALLOC > &from)
copy operator
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
Size NodeId
Type for node ids.