27 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H 28 #define GUM_MULTI_DIM_FUNCTION_GRAPH_INTERFACE_TEST_POLICY_H 46 template <
typename GUM_SCALAR >
69 void*
operator new(
size_t s) {
72 void operator delete(
void* p) {
119 virtual double score()
const = 0;
154 std::stringstream ss;
155 ss <<
"\t\t\tNb Obs : " <<
__nbObs << std::endl;
virtual double score() const =0
Returns the performance of current variable according to the test.
Base node set class for graphs.
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.
Headers of gum::SmallObjectAllocator.
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.
gum is the global namespace for all aGrUM entities
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()