TraDemGen Logo  1.00.9
C++ Simulated Travel Demand Generation Library
Loading...
Searching...
No Matches
TRADEMGEN::ContinuousAttributeLite< T > Struct Template Reference

Class modeling the distribution of values that can be taken by a continuous attribute. More...

#include <trademgen/basic/ContinuousAttributeLite.hpp>

Public Types

typedef std::map< T, stdair::Probability_T > ContinuousDistribution_T
 

Public Member Functions

const T getValue (const stdair::Probability_T &iCumulativeProbability) const
 
const double getDerivativeValue (const T iKey) const
 
const T getUpperBound (const T iKey) const
 
const std::string displayCumulativeDistribution () const
 
 ContinuousAttributeLite (const ContinuousDistribution_T &iValueMap)
 
 ContinuousAttributeLite (const ContinuousAttributeLite &iCAL)
 
ContinuousAttributeLiteoperator= (const ContinuousAttributeLite &iCAL)
 
virtual ~ContinuousAttributeLite ()
 

Detailed Description

template<typename T>
struct TRADEMGEN::ContinuousAttributeLite< T >

Class modeling the distribution of values that can be taken by a continuous attribute.

Definition at line 26 of file ContinuousAttributeLite.hpp.

Member Typedef Documentation

◆ ContinuousDistribution_T

template<typename T >
typedef std::map<T, stdair::Probability_T> TRADEMGEN::ContinuousAttributeLite< T >::ContinuousDistribution_T

Type for the probability mass function.

Definition at line 32 of file ContinuousAttributeLite.hpp.

Constructor & Destructor Documentation

◆ ContinuousAttributeLite() [1/2]

template<typename T >
TRADEMGEN::ContinuousAttributeLite< T >::ContinuousAttributeLite ( const ContinuousDistribution_T & iValueMap)
inline

Constructor.

Definition at line 157 of file ContinuousAttributeLite.hpp.

◆ ContinuousAttributeLite() [2/2]

template<typename T >
TRADEMGEN::ContinuousAttributeLite< T >::ContinuousAttributeLite ( const ContinuousAttributeLite< T > & iCAL)
inline

Copy constructor.

Definition at line 165 of file ContinuousAttributeLite.hpp.

◆ ~ContinuousAttributeLite()

template<typename T >
virtual TRADEMGEN::ContinuousAttributeLite< T >::~ContinuousAttributeLite ( )
inlinevirtual

Destructor.

Definition at line 184 of file ContinuousAttributeLite.hpp.

Member Function Documentation

◆ getValue()

template<typename T >
const T TRADEMGEN::ContinuousAttributeLite< T >::getValue ( const stdair::Probability_T & iCumulativeProbability) const
inline

◆ getDerivativeValue()

template<typename T >
const double TRADEMGEN::ContinuousAttributeLite< T >::getDerivativeValue ( const T iKey) const
inline

Get the value of the derivative function in a key point.

Definition at line 82 of file ContinuousAttributeLite.hpp.

References TRADEMGEN::DictionaryManager::keyToValue().

Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess().

◆ getUpperBound()

template<typename T >
const T TRADEMGEN::ContinuousAttributeLite< T >::getUpperBound ( const T iKey) const
inline

Get the upper bound.

Definition at line 116 of file ContinuousAttributeLite.hpp.

Referenced by TRADEMGEN::DemandStream::generateTimeOfRequestPoissonProcess().

◆ displayCumulativeDistribution()

template<typename T >
const std::string TRADEMGEN::ContinuousAttributeLite< T >::displayCumulativeDistribution ( ) const
inline

Display cumulative distribution.

Definition at line 135 of file ContinuousAttributeLite.hpp.

References TRADEMGEN::DictionaryManager::keyToValue().

Referenced by TRADEMGEN::DemandCharacteristics::describe().

◆ operator=()

template<typename T >
ContinuousAttributeLite & TRADEMGEN::ContinuousAttributeLite< T >::operator= ( const ContinuousAttributeLite< T > & iCAL)
inline

Copy operator.

Definition at line 174 of file ContinuousAttributeLite.hpp.


The documentation for this struct was generated from the following file: