34 #ifndef GUM_LEARNING_SCORING_CACHE_H 35 #define GUM_LEARNING_SCORING_CACHE_H 59 template <
template <
typename >
class ALLOC = std::allocator >
149 std::size_t
size()
const;
157 #ifndef DOXYGEN_SHOULD_SKIP_THIS 163 ALLOC< std::pair< IdSet< ALLOC >,
double > > >
virtual ~ScoringCache()
destructor
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set...
void erase(const IdSet< ALLOC > &idset)
removes a score (if it exists)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
std::size_t size() const
returns the number of scores saved in the cache
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
void clear()
removes all the stored scores
double score(const IdSet< ALLOC > &idset)
returns a given score
ScoringCache< ALLOC > & operator=(const ScoringCache< ALLOC > &from)
copy operator
void insert(const IdSet< ALLOC > &idset, double score)
insert a new score into the cache
ScoringCache(const allocator_type &alloc=allocator_type())
default constructor
virtual ScoringCache< ALLOC > * clone() const
virtual copy constructor
a cache for caching scores and independence tests resultsCaching previously computed scores or the re...
allocator_type getAllocator() const
returns the allocator used by the translator
bool exists(const IdSet< ALLOC > &idset)
indicates whether a given score exists