50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_G_TEST_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_G_TEST_POLICY_H
73 template <
typename GUM_ELEMENT >
94 void*
operator new(
size_t s);
96 void operator delete(
void* p);
132 double score()
const override;
Template implementations for the GTestPolicy class.
Headers of the ITestPolicy.
Headers of the ChiSquare class.
double score() const override
Returns the performance of current variable according to the test.
bool isTestRelevant() const override
Returns true if enough observation were made so that the test can be relevant.
GTestPolicy()
Constructor.
~GTestPolicy() override
Destructor.
void addObservation(Idx iattr, GUM_ELEMENT ivalue) override
Comptabilizes the new observation.
ContingencyTable< Idx, GUM_ELEMENT > _conTab_
The contingency table used to keeps records of all observation.
std::string toString() const
double secondaryscore() const override
Returns a second criterion to severe ties.
void computeScore() const override
Computes the GStat of current variable according to the test.
void add(const GTestPolicy< GUM_ELEMENT > &src)
Performs the merging of current GTestPolicy instance with given instance.
const ContingencyTable< Idx, GUM_ELEMENT > & ct() const
Returns contingency table (needed for the merging of GTestPolicy instances).
ITestPolicy()
Allocators and Deallocators redefinition.
Headers of the ContingencyTable class.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities