![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<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 43 of file contingencyTable_tpl.h.
gum::ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B >::~ContingencyTable | ( | ) |
Default destructor.
Definition at line 52 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 65 of file contingencyTable_tpl.h.
|
inline |
Returns the number of samples for line iattr.
Definition at line 122 of file contingencyTable.h.
|
inline |
Increments the number of sample for case( iattr, ivalue )
Definition at line 125 of file contingencyTable.h.
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 106 of file contingencyTable.h.
|
inline |
Returns the number of samples for line iattr.
Definition at line 144 of file contingencyTable.h.
|
inline |
Returns the number of samples for column ivalue.
Definition at line 134 of file contingencyTable.h.
|
inline |
Increments the number of sample for case( iattr, ivalue )
Definition at line 137 of file contingencyTable.h.
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 113 of file contingencyTable.h.
|
inline |
Returns the number of samples for column ivalue.
Definition at line 149 of file contingencyTable.h.
|
inline |
Returns the number of samples for case (iattr, ivalue)
Definition at line 97 of file contingencyTable.h.
|
inline |
Default constructor.
Definition at line 78 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 87 of file contingencyTable_tpl.h.
|
inline |
Definition at line 156 of file contingencyTable.h.
|
private |
Definition at line 175 of file contingencyTable.h.
|
private |
Definition at line 176 of file contingencyTable.h.
|
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 174 of file contingencyTable.h.