Jafar
|
Definition at line 58 of file Attributes.hpp.
Public Member Functions | |
Attributes () | |
Default Constructor. | |
Attributes (attributeKey _at, double inval_) | |
Initializer Constructor. | |
void | set (attributeKey _at, double inval_, bool reset=true) |
Setting certainties. | |
void | normalizeCertainties (attributeKey fromK, attributeKey toK) |
Normalize the given range of attribute probabilities. | |
void | distributeCertainties () |
Automatic equi-distribution of probas and entropy update. | |
void | updateEntropy (attributeClass _ac) |
bool | hasBeenSet (attributeKey _at) |
void | reset () |
void | print (attributeKey _at) |
Attributes & | operator= (const Attributes &rhs) |
Equality operator. | |
Public Attributes | |
double | certainty [ATT_MAX] |
Array representing certainty of each attribute. | |
bool | hasbeenset [ATT_MAX] |
double | infotropy [CLASS_MAX] |
Map for information entropy of each attribute. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Attributes &att) |
Output operator. |
void jafar::gramer::Attributes::distributeCertainties | ( | ) | [inline] |
Automatic equi-distribution of probas and entropy update.
Calls the entropy update as everything is set correctly.
Definition at line 180 of file Attributes.hpp.
References certainty, and normalizeCertainties().
void jafar::gramer::Attributes::normalizeCertainties | ( | attributeKey | fromK, |
attributeKey | toK | ||
) | [inline] |
Normalize the given range of attribute probabilities.
This is performed wether or not the attribute is set Note: Do not normalize attributes on partially read data
Definition at line 132 of file Attributes.hpp.
References certainty.
Referenced by distributeCertainties().
void jafar::gramer::Attributes::set | ( | attributeKey | _at, |
double | inval_, | ||
bool | reset = true |
||
) | [inline] |
Setting certainties.
Default behaviour is to reset them to the new value inval_. But it can be prevented by passing reset=false as argument.
Definition at line 88 of file Attributes.hpp.
References certainty.
Generated on Wed Oct 15 2014 00:37:39 for Jafar by doxygen 1.7.6.1 |