31 #ifndef GUM_LEARNING_SCORING_CACHE_H 32 #define GUM_LEARNING_SCORING_CACHE_H 56 template <
template <
typename >
class ALLOC = std::allocator >
146 std::size_t
size()
const;
154 #ifndef DOXYGEN_SHOULD_SKIP_THIS 160 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)
A class used by learning caches to represent uniquely sets of variables.
gum is the global namespace for all aGrUM entities
The class for generic Hash Tables.
std::size_t size() const
returns the number of scores saved in the cache
a cache for caching scores and independence tests results
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