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.
typedef std::map<T, stdair::Probability_T> TRADEMGEN::CategoricalAttributeLite::ProbabilityMassFunction_T |
Type for the probability mass function.
Definition at line 33 of file CategoricalAttributeLite.hpp.
TRADEMGEN::CategoricalAttributeLite::CategoricalAttributeLite | ( | const ProbabilityMassFunction_T & | iValueMap | ) | [inline] |
Main constructor.
Definition at line 95 of file CategoricalAttributeLite.hpp.
TRADEMGEN::CategoricalAttributeLite::CategoricalAttributeLite | ( | ) | [inline] |
Default constructor.
Definition at line 103 of file CategoricalAttributeLite.hpp.
TRADEMGEN::CategoricalAttributeLite::CategoricalAttributeLite | ( | const CategoricalAttributeLite & | iCAL | ) | [inline] |
Copy constructor.
Definition at line 109 of file CategoricalAttributeLite.hpp.
virtual TRADEMGEN::CategoricalAttributeLite::~CategoricalAttributeLite | ( | ) | [inline, virtual] |
Destructor.
Definition at line 128 of file CategoricalAttributeLite.hpp.
const T& TRADEMGEN::CategoricalAttributeLite::getValue | ( | const stdair::Probability_T & | iCumulativeProbability | ) | const [inline] |
Get value from inverse cumulative distribution.
Definition at line 41 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::DemandCharacteristics::getPOSValue(), TRADEMGEN::DemandStream::generateChannel(), TRADEMGEN::DemandStream::generateTripType(), TRADEMGEN::DemandStream::generateStayDuration(), and TRADEMGEN::DemandStream::generateFrequentFlyer().
bool TRADEMGEN::CategoricalAttributeLite::checkValue | ( | const T & | iValue | ) | const [inline] |
Check if a value belongs to the value list.
Definition at line 61 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::DemandCharacteristics::checkPOSValue().
const std::string TRADEMGEN::CategoricalAttributeLite::displayProbabilityMass | ( | ) | const [inline] |
Display probability mass function.
Definition at line 76 of file CategoricalAttributeLite.hpp.
Referenced by TRADEMGEN::CategoricalAttributeLite< stdair::TripType_T >::getValue(), TRADEMGEN::DemandCharacteristics::describe(), and TRADEMGEN::DemandStream::display().
CategoricalAttributeLite& TRADEMGEN::CategoricalAttributeLite::operator= | ( | const CategoricalAttributeLite & | iCAL | ) | [inline] |
Copy operator.
Definition at line 118 of file CategoricalAttributeLite.hpp.