eosim::dist::Distribution EoSimulator Programmer's Manual
NAME
Distribution: Distribution abstract class
SYNOPSIS
#include <eosim/dist/distribution.hpp>
namespace eosim {
namespace dist {
class Distribution {
public:
Distribution (GenType gen_);
virtual ~Distribution ();
virtual double sample () = 0;
void setSeed (unsigned long seed_);
};
}
}
DESCRIPTION
This is the parent class of all distributions.
CLASS OPERATIONS
Distribution (GenType gen_):
The constructor creates a Distribution whose generator’s type is gen_. This allows the programmer to have different distributions with different generators.
~Distribution ():
The destructor of Distribution.
double sample ():
This abstract operation is redefine in concrete distributions. It returns a sample value from the distribution.
void setSeed (unsigned long seed_):
This operation sets a new seed in the distribution’s number generator.
SEE ALSO