64 template <
typename GUM_SCALAR_A,
typename GUM_SCALAR_B >
72 template <
typename GUM_SCALAR_A,
typename GUM_SCALAR_B >
84 template <
typename GUM_SCALAR_A,
typename GUM_SCALAR_B >
86 GUM_SCALAR_B valueB) {
94 std::pair< GUM_SCALAR_A, GUM_SCALAR_B > cell(valueA, valueB);
99 template <
typename GUM_SCALAR_A,
typename GUM_SCALAR_B >
109 std::pair< GUM_SCALAR_A, GUM_SCALAR_B > cell(aTer.key(), bTer.key());
117 if (_attrBMarginalTable_.exists(bTer.key())) _attrBMarginalTable_[bTer.key()] += bTer.val();
118 else _attrBMarginalTable_.insert(bTer.key(), bTer.val());
<agrum/FMDP/learning/core/contingencyTable.h>
HashTable< GUM_SCALAR, Idx > _attrBMarginalTable_
HashTable< std::pair< Idx, GUM_SCALAR >, Idx > _jointTable_
void add(GUM_SCALAR_A valueA, GUM_SCALAR_B valueB)
Increments the number of sample for case( iattr, ivalue ).
HashTableConstIteratorSafe< GUM_SCALAR_B, Idx > attrBEndSafe() const
Increments the number of sample for case( iattr, ivalue ).
HashTableConstIteratorSafe< GUM_SCALAR_A, Idx > attrABeginSafe() const
Returns the number of samples for line iattr.
HashTableConstIteratorSafe< GUM_SCALAR_A, Idx > attrAEndSafe() const
Increments the number of sample for case( iattr, ivalue ).
Idx joint(GUM_SCALAR_A valueA, GUM_SCALAR_B valueB) const
Returns the number of samples for case (iattr, ivalue).
HashTableConstIteratorSafe< GUM_SCALAR_B, Idx > attrBBeginSafe() const
Returns the number of samples for column ivalue.
ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > & operator+=(const ContingencyTable< GUM_SCALAR_A, GUM_SCALAR_B > &src)
~ContingencyTable()
Default destructor.
ContingencyTable()
Default constructor.
HashTable< Idx, Idx > _attrAMarginalTable_
Headers of the ContingencyTable class.
gum is the global namespace for all aGrUM entities