![]() |
aGrUM
0.16.0
|
<agrum/FMDP/learning/core/contingencyTable.h> More...
#include <contingencyTable.h>
Public Member Functions | |
ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > & | operator+= (const ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > &src) |
std::string | toString () const |
Constructor & destructor. | |
ContingencyTable () | |
Default constructor. More... | |
~ContingencyTable () | |
Default destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Default constructor. More... | |
void | add (GUM_SCALAR_A valueA, GUM_SCALAR_B valueB) |
Increments the number of sample for case( iattr, ivalue ) More... | |
Idx | joint (GUM_SCALAR_A valueA, GUM_SCALAR_B valueB) const |
Returns the number of samples for case (iattr, ivalue) More... | |
Idx | attrAMarginal (GUM_SCALAR_A valueA) const |
Returns the number of samples for case (iattr, ivalue) More... | |
Idx | attrBMarginal (GUM_SCALAR_B valueB) const |
Returns the number of samples for case (iattr, ivalue) More... | |
HashTableConstIteratorSafe< GUM_SCALAR_A, Idx > | attrABeginSafe () const |
Returns the number of samples for line iattr. More... | |
HashTableConstIteratorSafe< GUM_SCALAR_A, Idx > | attrAEndSafe () const |
Increments the number of sample for case( iattr, ivalue ) More... | |
HashTableConstIteratorSafe< GUM_SCALAR_B, Idx > | attrBBeginSafe () const |
Returns the number of samples for column ivalue. More... | |
HashTableConstIteratorSafe< GUM_SCALAR_B, Idx > | attrBEndSafe () const |
Increments the number of sample for case( iattr, ivalue ) More... | |
Idx | attrASize () const |
Returns the number of samples for line iattr. More... | |
Idx | attrBSize () const |
Returns the number of samples for column ivalue. More... | |
<agrum/FMDP/learning/core/contingencyTable.h>
Definition at line 57 of file contingencyTable.h.
gum::ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B >::ContingencyTable | ( | ) |
Default constructor.
Definition at line 44 of file contingencyTable_tpl.h.
gum::ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B >::~ContingencyTable | ( | ) |
Default destructor.
Definition at line 53 of file contingencyTable_tpl.h.
void gum::ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B >::add | ( | GUM_SCALAR_A | valueA, |
GUM_SCALAR_B | valueB | ||
) |
Increments the number of sample for case( iattr, ivalue )
Definition at line 66 of file contingencyTable_tpl.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator delete().
|
inline |
Returns the number of samples for line iattr.
Definition at line 128 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator+=().
|
inline |
Increments the number of sample for case( iattr, ivalue )
Definition at line 131 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator+=().
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 110 of file contingencyTable.h.
|
inline |
Returns the number of samples for line iattr.
Definition at line 150 of file contingencyTable.h.
Referenced by gum::Chi2TestPolicy< GUM_SCALAR >::isTestRelevant(), and gum::GTestPolicy< GUM_SCALAR >::isTestRelevant().
|
inline |
Returns the number of samples for column ivalue.
Definition at line 140 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator+=().
|
inline |
Increments the number of sample for case( iattr, ivalue )
Definition at line 143 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator+=().
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 118 of file contingencyTable.h.
|
inline |
Returns the number of samples for column ivalue.
Definition at line 155 of file contingencyTable.h.
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 99 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::operator+=().
|
inline |
Default constructor.
Definition at line 80 of file contingencyTable.h.
|
inline |
Allocators and Deallocators redefinition.
Definition at line 77 of file contingencyTable.h.
ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > & gum::ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B >::operator+= | ( | const ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > & | src | ) |
Definition at line 89 of file contingencyTable_tpl.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::add(), and gum::ContingencyTable< Idx, GUM_SCALAR >::attrBSize().
|
inline |
Definition at line 162 of file contingencyTable.h.
Referenced by gum::Chi2TestPolicy< GUM_SCALAR >::toString(), and gum::GTestPolicy< GUM_SCALAR >::toString().
|
private |
Definition at line 181 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::attrABeginSafe(), gum::ContingencyTable< Idx, GUM_SCALAR >::attrAEndSafe(), gum::ContingencyTable< Idx, GUM_SCALAR >::attrAMarginal(), gum::ContingencyTable< Idx, GUM_SCALAR >::attrASize(), gum::ContingencyTable< Idx, GUM_SCALAR >::attrBMarginal(), and gum::ContingencyTable< Idx, GUM_SCALAR >::toString().
|
private |
|
private |
The contingency table used to compute the GStat Left Idx is for the attribute Right Idx for the value.
NB: This is a silly and in a hurry implementation of contingency table If someone ever use this class and has time to correctly implements a efficient contingency table, you're welcome
Definition at line 180 of file contingencyTable.h.
Referenced by gum::ContingencyTable< Idx, GUM_SCALAR >::joint(), and gum::ContingencyTable< Idx, GUM_SCALAR >::toString().