27 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_LEAST_SQUARE_TEST_POLICY_H 28 #define GUM_MULTI_DIM_FUNCTION_GRAPH_LEAST_SQUARE_TEST_POLICY_H 48 template <
typename GUM_SCALAR >
67 void*
operator new(
size_t s) {
70 void operator delete(
void* p) {
const HashTable< Idx, LinkedList< double > *> & obsTable() const
Returns global sum (needed for the merging)
double score()
Returns the performance of current variable according to the test.
const HashTable< Idx, Idx > & nbObsTable() const
Returns nbobs per modality table (needed for the merging)
HashTable< Idx, LinkedList< double > *> __obsTable
Not sure if needed.
virtual ~LeastSquareTestPolicy()
Destructor.
double secondaryscore() const
Returns a second criterion to severe ties.
const HashTable< Idx, double > & sumAttrTable() const
Returns sum per modality table (needed for the merging)
void add(const LeastSquareTestPolicy< GUM_SCALAR > &src)
Performs the merging of current LeastSquareTestPolicy instance with given instance.
double sumValue() const
Returns global sum (needed for the merging)
Headers of the ITestPolicy.
bool isTestRelevant() const
Returns true if enough observation were made so that the test can be relevant.
gum is the global namespace for all aGrUM entities
HashTable< Idx, Idx > __nbObsTable
Nb Observation for each modality assumed by variable.
<agrum/multidim/core/testPolicy/leastSquareTestPolicy.h>
void addObservation(Idx attr, GUM_SCALAR value)
Comptabilizes the new observation.
<agrum/multidim/core/testPolicies/ITestPolicy.h>
LeastSquareTestPolicy()
Constructor.
Headers of the ContingencyTable class.
void computeScore()
Returns the performance of current variable according to the test.
double __score
Keeping computed score.
Template implementations for the LeastSquareTestPolicy class.
HashTable< Idx, double > __sumAttrTable
Sum for each modality assumed by variable.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
Idx nbObservation() const
Comptabilizes the new observation.
Headers of the Link and LinkedList classes.
static SmallObjectAllocator & instance()