Class modeling the distribution of values that can be taken by a categorical attribute. More...
#include <trademgen/basic/CategoricalAttribute.hpp>
Public Types | |
typedef std::map< T, DictionaryKey_T > | ProbabilityMassFunction_T |
typedef std::map < DictionaryKey_T, T > | InverseCumulativeDistribution_T |
Public Member Functions | |
const T & | getValue (const Probability_T &iCumulativeProbability) const |
const std::string | displayProbabilityMassFunction () const |
const std::string | displayInverseCumulativeDistribution () const |
CategoricalAttribute (const ProbabilityMassFunction_T &iProbabilityMassFunction) | |
CategoricalAttribute () | |
CategoricalAttribute (const CategoricalAttribute &iCategoricalAttribute) | |
virtual | ~CategoricalAttribute () |
void | determineInverseCumulativeDistributionFromProbabilityMassFunction () |
Class modeling the distribution of values that can be taken by a categorical attribute.
Definition at line 21 of file CategoricalAttribute.hpp.
typedef std::map<T, DictionaryKey_T> stdair::CategoricalAttribute< T >::ProbabilityMassFunction_T |
Define the probability mass function type.
Definition at line 28 of file CategoricalAttribute.hpp.
typedef std::map<DictionaryKey_T, T> stdair::CategoricalAttribute< T >::InverseCumulativeDistribution_T |
Define the inverse cumulative distribution type.
Definition at line 33 of file CategoricalAttribute.hpp.
|
inline |
Main constructor.
Definition at line 129 of file CategoricalAttribute.hpp.
References stdair::CategoricalAttribute< T >::determineInverseCumulativeDistributionFromProbabilityMassFunction().
|
inline |
Default constructor.
Definition at line 137 of file CategoricalAttribute.hpp.
|
inline |
Copy constructor.
Definition at line 142 of file CategoricalAttribute.hpp.
References stdair::CategoricalAttribute< T >::determineInverseCumulativeDistributionFromProbabilityMassFunction().
|
inlinevirtual |
Destructor.
Definition at line 150 of file CategoricalAttribute.hpp.
|
inline |
Get value from inverse cumulative distribution.
Definition at line 67 of file CategoricalAttribute.hpp.
References stdair::CategoricalAttribute< T >::displayInverseCumulativeDistribution().
|
inline |
Display probability mass function.
Definition at line 91 of file CategoricalAttribute.hpp.
|
inline |
Display inverse cumulative distribution.
Definition at line 111 of file CategoricalAttribute.hpp.
Referenced by stdair::CategoricalAttribute< T >::getValue().
|
inline |
Determine inverse cumulative distribution from probability mass function (initialisation).
Definition at line 157 of file CategoricalAttribute.hpp.
Referenced by stdair::CategoricalAttribute< T >::CategoricalAttribute().