30 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H 31 #define GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H 49 template <
typename GUM_SCALAR >
72 void*
operator new(
size_t s) {
75 void operator delete(
void* p) {
122 virtual double score()
const = 0;
157 std::stringstream ss;
158 ss <<
"\t\t\tNb Obs : " <<
__nbObs << std::endl;
virtual double score() const =0
Returns the performance of current variable according to the test.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void computeScore() const
Recomputes the statistic from the beginning.
virtual bool isTestRelevant() const =0
Returns true if enough observation were added so that the test can be relevant.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
ITestPolicy()
Allocators and Deallocators redefinition.
virtual void addObservation(Idx attr, GUM_SCALAR value)
Comptabilizes the new observation.
bool __isModified
Booleans indicating if we have to re eval test.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual double secondaryscore() const =0
Returns a second criterion to severe ties.
<agrum/multidim/core/testPolicies/ITestPolicy.h>
virtual ~ITestPolicy()
Allocators and Deallocators redefinition.
std::string toString() const
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
void add(const ITestPolicy< GUM_SCALAR > &src)
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
Idx nbObservation() const
Comptabilizes the new observation.
static SmallObjectAllocator & instance()