30 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_G_TEST_POLICY_H 31 #define GUM_MULTI_DIM_FUNCTION_GRAPH_G_TEST_POLICY_H 52 template <
typename GUM_SCALAR >
75 void*
operator new(
size_t s) {
79 void operator delete(
void* p) {
120 double score()
const;
157 std::stringstream ss;
158 ss << ITestPolicy< GUM_SCALAR >::toString()
159 <<
"\t\t\tContingency Table : " << std::endl
161 <<
"\t\t\tGStat : " <<
__GStat << std::endl
void computeScore() const
Computes the GStat of current variable according to the test.
virtual ~GTestPolicy()
Destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void addObservation(Idx iattr, GUM_SCALAR ivalue)
Comptabilizes the new observation.
const ContingencyTable< Idx, GUM_SCALAR > & ct() const
Returns contingency table (needed for the merging of GTestPolicy instances)
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.
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.
std::string toString() const
ContingencyTable< Idx, GUM_SCALAR > __conTab
The contingency table used to keeps records of all observation.
<agrum/multidim/core/testPolicies/ITestPolicy.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
double secondaryscore() const
Returns a second criterion to severe ties.
<agrum/multidim/core/testPolicies/GTestPolicy.h>
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
double score() const
Returns the performance of current variable according to the test.
bool isTestRelevant() const
Returns true if enough observation were made so that the test can be relevant.
void add(const GTestPolicy< GUM_SCALAR > &src)
Performs the merging of current GTestPolicy instance with given instance.
GTestPolicy()
Constructor.
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()