Class modeling the distribution of values that can be taken by a categorical attribute. More...
#include <trademgen/basic/CategoricalAttributeLite.hpp>
Public Types | |
typedef std::map< T, stdair::Probability_T > | ProbabilityMassFunction_T |
Public Member Functions | |
const T & | getValue (const stdair::Probability_T &iCumulativeProbability) const |
bool | checkValue (const T &iValue) const |
const std::string | displayProbabilityMass () const |
CategoricalAttributeLite (const ProbabilityMassFunction_T &iValueMap) | |
CategoricalAttributeLite () | |
CategoricalAttributeLite (const CategoricalAttributeLite &iCAL) | |
CategoricalAttributeLite & | operator= (const CategoricalAttributeLite &iCAL) |
virtual | ~CategoricalAttributeLite () |
Class modeling the distribution of values that can be taken by a categorical attribute.
Definition at line 27 of file CategoricalAttributeLite.hpp.
typedef std::map<T, stdair::Probability_T> TRADEMGEN::CategoricalAttributeLite< T >::ProbabilityMassFunction_T |
Type for the probability mass function.
Definition at line 33 of file CategoricalAttributeLite.hpp.
|
inline |
Main constructor.
Definition at line 95 of file CategoricalAttributeLite.hpp.
|
inline |
Default constructor.
Definition at line 103 of file CategoricalAttributeLite.hpp.
|
inline |
Copy constructor.
Definition at line 109 of file CategoricalAttributeLite.hpp.
|
inlinevirtual |
Destructor.
Definition at line 128 of file CategoricalAttributeLite.hpp.
|
inline |
Get value from inverse cumulative distribution.
Definition at line 41 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::DemandStream::generateChannel(), TRADEMGEN::DemandStream::generateFrequentFlyer(), TRADEMGEN::DemandStream::generateStayDuration(), TRADEMGEN::DemandStream::generateTripType(), and TRADEMGEN::DemandCharacteristics::getPOSValue().
|
inline |
Check if a value belongs to the value list.
Definition at line 61 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::DemandCharacteristics::checkPOSValue().
|
inline |
Display probability mass function.
Definition at line 76 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::DemandCharacteristics::describe(), TRADEMGEN::DemandStream::display(), and TRADEMGEN::CategoricalAttributeLite< stdair::TripType_T >::getValue().
|
inline |
Copy operator.
Definition at line 118 of file CategoricalAttributeLite.hpp.