50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H
70 template <
typename GUM_SCALAR >
96 void operator delete(
void* p) {
178 std::stringstream ss;
179 ss <<
"\t\t\tNb Obs : " <<
_nbObs_ << std::endl;
virtual double score() const =0
Returns the performance of current variable according to the test.
Idx nbObservation() const
Comptabilizes the new observation.
virtual void computeScore() const
Recomputes the statistic from the beginning.
ITestPolicy()
Allocators and Deallocators redefinition.
virtual bool isTestRelevant() const =0
Returns true if enough observation were added so that the test can be relevant.
bool _isModified_
Booleans indicating if we have to re eval test.
virtual void addObservation(Idx attr, GUM_SCALAR value)
Comptabilizes the new observation.
void add(const ITestPolicy< GUM_SCALAR > &src)
virtual double secondaryscore() const =0
Returns a second criterion to severe ties.
std::string toString() const
virtual ~ITestPolicy()
Allocators and Deallocators redefinition.
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities
Base node set class for graphs.
Headers of gum::SmallObjectAllocator.