31 #ifndef GUM_NODE_DATABASE_H 32 #define GUM_NODE_DATABASE_H 57 template < TESTNAME AttributeSelection,
bool isScalar >
61 template <
typename GUM_SCALAR >
88 void*
operator new(
size_t s) {
91 void operator delete(
void* p) {
222 #endif // GUM_NODE_DATABASE_H Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Idx __valueDomain(Int2Type< false >) const
const TestPolicy< ValueType > * testPolicy(const DiscreteVariable *var) const
Returns a reference to nDB test policy for given variable (so that test policy information can be mer...
const DiscreteVariable * __value
So does this reference on the value observed.
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.
HashTable< ValueType, Idx > __valueCount
const HashTableConstIteratorSafe< ValueType, Idx > cendValues() const
Merges given NodeDatabase informations into current nDB.
Safe Const Iterators for hashtables.
void __addObservation(const Observation *, Int2Type< true >)
Updates database with new observation.
typename TestSelect< AttributeSelection, GTestPolicy< GUM_SCALAR >, Chi2TestPolicy< GUM_SCALAR >, LeastSquareTestPolicy< GUM_SCALAR > >::type TestPolicy
Idx __valueDomain(Int2Type< true >) const
NodeDatabase(const Set< const DiscreteVariable * > *, const DiscreteVariable *=nullptr)
Default constructor.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
INLINE bool isTestRelevant(const DiscreteVariable *var) const
Indicates wether or not, node has sufficient observation so that any statistic is relevant...
<agrum/multidim/core/testPolicy/Chi2TestPolicy.h>
<agrum/multidim/core/testPolicy/leastSquareTestPolicy.h>
INLINE double testOtherCriterion(const DiscreteVariable *var) const
Returns the performance of given variables according to selection secondary criterion (to break ties)...
The class for generic Hash Tables.
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.
Representation of a setA Set is a structure that contains arbitrary elements.
virtual Size domainSize() const =0
std::string toString() const
void addObservation(const Observation *)
Nb observation taken into account by this instance.
INLINE double testValue(const DiscreteVariable *var) const
Returns the performance of given variables according to selection criterion.
<agrum/multidim/core/testPolicies/GTestPolicy.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const HashTableConstIteratorSafe< ValueType, Idx > cbeginValues() const
Iterators on value count to recopy correctly its content.
ValueSelect< isScalar, double, Idx >::type ValueType
NodeDatabase< AttributeSelection, isScalar > & operator+=(const NodeDatabase< AttributeSelection, isScalar > &src)
Merges given NodeDatabase informations into current nDB.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
INLINE Idx nbObservation() const
Nb observation taken into account by this instance.
Idx effectif(Idx moda) const
static SmallObjectAllocator & instance()
~NodeDatabase()
Default destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/FMDP/learning/datastructure/nodeDatabase.h>
HashTable< const DiscreteVariable *, TestPolicy< ValueType > *> __attrTable
Table giving for every variables its instantiation.