Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Friends
jafar::lgl::Attributes Struct Reference

Detailed Description

Definition at line 58 of file Attributes.hpp.

List of all members.

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)
Attributesoperator= (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.

Member Function Documentation

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::lgl::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::lgl::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.

Referenced by jafar::lgl::DecompCluster::setCertainty().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:41 for Jafar by doxygen 1.7.6.1
LAAS-CNRS