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