eosim::dist::UniformDist EoSimulator Programmer's Manual
NAME
UniformDist: Uniform Distribution
SYNOPSIS
#include <eosim/dist/uniformdist.hpp>
namespace eosim {
namespace dist {
class UniformDist: public Distribution {
public:
UniformDist (GenType gen_, double low_, double upper_);
~UniformDist ();
double sample ();
};
}
}
DESCRIPTION
This class sample values from a uniform distribution.
CLASS OPERATIONS
UniformDist (GenType gen_, double low_, double upper_):
The constructor creates a UniformDist with lower bound low_, upper bound upper_ and whose whose generator’s type is gen_.
~UniformDist ():
The destructor of UniformDist.
double sample ():
This operation samples a value using the inverse transform method.
SEE ALSO