![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/tools/multidim/core/testPolicies/GTestPolicy.h> More...
#include <GTestPolicy.h>
Public Member Functions | |
Constructor/Destrcutor | |
GTestPolicy () | |
Constructor. More... | |
virtual | ~GTestPolicy () |
Destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Constructor. More... | |
Observation insertion | |
void | addObservation (Idx iattr, GUM_SCALAR ivalue) |
Comptabilizes the new observation. More... | |
Test methods | |
bool | isTestRelevant () const |
Returns true if enough observation were made so that the test can be relevant. More... | |
void | computeScore () const |
Computes the GStat of current variable according to the test. More... | |
double | score () const |
Returns the performance of current variable according to the test. More... | |
double | secondaryscore () const |
Returns a second criterion to severe ties. More... | |
Fusion Methods | |
void | add (const GTestPolicy< GUM_SCALAR > &src) |
Performs the merging of current GTestPolicy instance with given instance. More... | |
const ContingencyTable< Idx, GUM_SCALAR > & | ct () const |
Returns contingency table (needed for the merging of GTestPolicy instances) More... | |
Miscelleanous Methods | |
std::string | toString () const |
Observation methods | |
Idx | nbObservation () const |
Comptabilizes the new observation. More... | |
Fusion Methods | |
void | add (const ITestPolicy< GUM_SCALAR > &src) |
Protected Member Functions | |
bool | isModified_ () const |
<agrum/tools/multidim/core/testPolicies/GTestPolicy.h>
G implements a test policy that follows the G statistic
Definition at line 53 of file GTestPolicy.h.
|
inline |
Constructor.
Definition at line 63 of file GTestPolicy.h.
|
inlinevirtual |
void gum::GTestPolicy< GUM_SCALAR >::add | ( | const GTestPolicy< GUM_SCALAR > & | src | ) |
Performs the merging of current GTestPolicy instance with given instance.
Definition at line 106 of file GTestPolicy_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inlineinherited |
Definition at line 139 of file ITestPolicy.h.
References gum::ITestPolicy< GUM_SCALAR >::_isModified_.
|
virtual |
Comptabilizes the new observation.
Reimplemented from gum::ITestPolicy< GUM_SCALAR >.
Definition at line 45 of file GTestPolicy_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Computes the GStat of current variable according to the test.
Reimplemented from gum::ITestPolicy< GUM_SCALAR >.
Definition at line 59 of file GTestPolicy_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Returns contingency table (needed for the merging of GTestPolicy instances)
Definition at line 145 of file GTestPolicy.h.
|
inlineprotectedinherited |
Definition at line 164 of file ITestPolicy.h.
References gum::ITestPolicy< GUM_SCALAR >::_isModified_.
|
inlinevirtual |
Returns true if enough observation were made so that the test can be relevant.
Implements gum::ITestPolicy< GUM_SCALAR >.
Definition at line 108 of file GTestPolicy.h.
|
inlineinherited |
|
inline |
Constructor.
Definition at line 80 of file GTestPolicy.h.
|
inline |
Allocators and Deallocators redefinition.
Definition at line 78 of file GTestPolicy.h.
|
virtual |
Returns the performance of current variable according to the test.
Implements gum::ITestPolicy< GUM_SCALAR >.
Definition at line 88 of file GTestPolicy_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Returns a second criterion to severe ties.
Implements gum::ITestPolicy< GUM_SCALAR >.
Definition at line 100 of file GTestPolicy_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Definition at line 156 of file GTestPolicy.h.
|
private |
The contingency table used to keeps records of all observation.
Definition at line 169 of file GTestPolicy.h.
|
mutableprivate |
Definition at line 170 of file GTestPolicy.h.