INET Framework for OMNeT++/OMNEST
|
Normal distribution random object. More...
#include <HttpRandom.h>
Public Member Functions | |
rdNormal (double mean, double sd, bool nonNegative=false) | |
rdNormal (cXMLAttributeMap attributes) | |
void | setMinLimit (double min) |
void | resetMinLimit () |
virtual double | draw () override |
Public Member Functions inherited from inet::httptools::rdObject | |
virtual | ~rdObject () |
DISTR_TYPE | getType () |
std::string | typeStr () |
virtual std::string | toString () |
Protected Attributes | |
double | m_mean = NaN |
The mean of the distribution. More... | |
double | m_sd = NaN |
The sd of the distribution. More... | |
double | m_min = NaN |
The minimum limit . More... | |
bool | m_bMinLimit = NaN |
Set if the minimum limit is set. More... | |
bool | m_nonNegative = NaN |
Non-negative only – uses the truncnormal function. More... | |
Protected Attributes inherited from inet::httptools::rdObject | |
DISTR_TYPE | m_type = dt_normal |
Additional Inherited Members | |
Protected Member Functions inherited from inet::httptools::rdObject | |
bool | _hasKey (cXMLAttributeMap attributes, std::string key) |
Normal distribution random object.
Wraps the OMNeT++ normal distribution function but adds a minimum limit.
inet::httptools::rdNormal::rdNormal | ( | double | mean, |
double | sd, | ||
bool | nonNegative = false |
||
) |
inet::httptools::rdNormal::rdNormal | ( | cXMLAttributeMap | attributes | ) |
|
overridevirtual |
Implements inet::httptools::rdObject.
|
inline |
|
inline |
|
protected |
Set if the minimum limit is set.
|
protected |
The mean of the distribution.
|
protected |
The minimum limit .
|
protected |
Non-negative only – uses the truncnormal function.
|
protected |
The sd of the distribution.