eosim::dist::LogNormalDist EoSimulator Programmer's Manual
NAME
LogNormalDist: Log Normal Distribution
SYNOPSIS
#include <eosim/dist/lognormaldist.hpp>
namespace eosim {
namespace dist {
class LogNormalDist: public Distribution {
public:
LogNormalDist (GenType gen_, double m_, double sd_);
~LogNormalDist ();
double sample ();
};
}
}
DESCRIPTION
This class sample values from a log normal distribution.
CLASS OPERATIONS
LogNormalDist (GenType gen_, double m_, double sd_):
The constructor creates a LogNormalDist with mean m_, standard deviation sd_ and whose generator’s type is gen_.
~LogNormalDist ():
The destructor of LogNormalDist.
double sample ():
This operation samples a value using Box and Muller method.
SEE ALSO