50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_CHI2_TEST_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_CHI2_TEST_POLICY_H
71 template <
typename GUM_ELEMENT >
81 void*
operator new(
size_t s);
83 void operator delete(
void* p);
125 double score()
const override;
Template implementations for the Chi2TestPolicy class.
Headers of the ITestPolicy.
Headers of the ChiSquare class.
void add(const Chi2TestPolicy< GUM_ELEMENT > &src)
void addObservation(Idx attr, GUM_ELEMENT value) override
Comptabilizes the new observation.
std::string toString() const
~Chi2TestPolicy() override
bool isTestRelevant() const override
Returns true if enough observation were made so that the test can be relevant.
void computeScore() const override
Recomputes the statistic from the beginning.
ContingencyTable< Idx, GUM_ELEMENT > _conTab_
The contingency table used to keeps records of all observation.
double secondaryscore() const override
Returns a second criterion to severe ties.
const ContingencyTable< Idx, GUM_ELEMENT > & ct() const
double score() const override
Returns the performance of current variable according to the test.
ITestPolicy()
Allocators and Deallocators redefinition.
Headers of the ContingencyTable class.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities