#include <RandomDistribution.h>
Public Member Functions | |
virtual | ~RandomDistribution () |
double | operator() (RandomEngine &eng) |
Return a random number specified by this distribution given a RandomEngine. | |
shared_ptr< std::vector< double > > | operator() (RandomEngine &eng, size_t n) |
virtual RandomDistribution * | clone (void) const =0 |
Protected Member Functions | |
virtual double | get (RandomEngine &eng) |
Definition at line 21 of file RandomDistribution.h.
virtual RandomDistribution::~RandomDistribution | ( | ) | [inline, virtual] |
Definition at line 24 of file RandomDistribution.h.
double RandomDistribution::operator() | ( | RandomEngine & | eng | ) | [inline] |
Return a random number specified by this distribution given a RandomEngine.
Definition at line 27 of file RandomDistribution.h.
shared_ptr< std::vector< double > > RandomDistribution::operator() | ( | RandomEngine & | eng, | |
size_t | n | |||
) |
Definition at line 11 of file RandomDistribution.cpp.
virtual RandomDistribution* RandomDistribution::clone | ( | void | ) | const [pure virtual] |
Implemented in RandomDistributionBoostImplementation< boost_dist >, ConstantNumber, UniformIntegerDistribution, ClippedDistribution, Gamma2Distribution, BndGammaDistribution, BndNormalDistribution, QuadDistribution, RandomDistributionBoostImplementation< boost::normal_distribution< double > >, RandomDistributionBoostImplementation< boost::binomial_distribution< int, double > >, RandomDistributionBoostImplementation< boost::exponential_distribution< double > >, RandomDistributionBoostImplementation< boost::uniform_real< double > >, RandomDistributionBoostImplementation< boost::gamma_distribution< double > >, RandomDistributionBoostImplementation< boost::lognormal_distribution< double > >, RandomDistributionBoostImplementation< boost::bernoulli_distribution< double > >, RandomDistributionBoostImplementation< boost::poisson_distribution< int, double > >, RandomDistributionBoostImplementation< boost::triangle_distribution< double > >, RandomDistributionBoostImplementation< boost::cauchy_distribution< double > >, and RandomDistributionBoostImplementation< boost::geometric_distribution< int, double > >.
Referenced by ClippedDistribution::ClippedDistribution(), DegreeDistributionConnections::DegreeDistributionConnections(), SimObjectVariationFactory::set(), and PopObjectAttributeFactory::set().
virtual double RandomDistribution::get | ( | RandomEngine & | eng | ) | [inline, protected, virtual] |
Reimplemented in RandomDistributionBoostImplementation< boost_dist >, ConstantNumber, UniformIntegerDistribution, ClippedDistribution, Gamma2Distribution, BndGammaDistribution, BndNormalDistribution, QuadDistribution, RandomDistributionBoostImplementation< boost::normal_distribution< double > >, RandomDistributionBoostImplementation< boost::binomial_distribution< int, double > >, RandomDistributionBoostImplementation< boost::exponential_distribution< double > >, RandomDistributionBoostImplementation< boost::uniform_real< double > >, RandomDistributionBoostImplementation< boost::gamma_distribution< double > >, RandomDistributionBoostImplementation< boost::lognormal_distribution< double > >, RandomDistributionBoostImplementation< boost::bernoulli_distribution< double > >, RandomDistributionBoostImplementation< boost::poisson_distribution< int, double > >, RandomDistributionBoostImplementation< boost::triangle_distribution< double > >, RandomDistributionBoostImplementation< boost::cauchy_distribution< double > >, and RandomDistributionBoostImplementation< boost::geometric_distribution< int, double > >.
Definition at line 31 of file RandomDistribution.h.