30 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_CHI2_TEST_POLICY_H 31 #define GUM_MULTI_DIM_FUNCTION_GRAPH_CHI2_TEST_POLICY_H 50 template <
typename GUM_SCALAR >
62 void*
operator new(
size_t s) {
65 void operator delete(
void* p) {
112 double score()
const;
126 std::stringstream ss;
127 ss << ITestPolicy< GUM_SCALAR >::toString()
128 <<
"\t\t\tContingency Table : " << std::endl
130 <<
"\t\t\tGStat : " << this->
score() << std::endl
void addObservation(Idx attr, GUM_SCALAR value)
Comptabilizes the new observation.
std::string toString() const
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.
<agrum/multidim/core/testPolicy/Chi2TestPolicy.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/multidim/core/testPolicies/ITestPolicy.h>
const ContingencyTable< Idx, GUM_SCALAR > & ct() const
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.
virtual double secondaryscore() const
Returns a second criterion to severe ties.
void add(const Chi2TestPolicy< GUM_SCALAR > &src)
virtual ~Chi2TestPolicy()
void computeScore() const
Recomputes the statistic from the beginning.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
bool isTestRelevant() const
Returns true if enough observation were made so that the test can be relevant.
double score() const
Returns the performance of current variable according to the test.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
Idx nbObservation() const
Comptabilizes the new observation.
Idx attrASize() const
Returns the number of samples for line iattr.
static SmallObjectAllocator & instance()
ContingencyTable< Idx, GUM_SCALAR > __conTab
The contingency table used to keeps records of all observation.
std::string toString() const