#include <IRandom.h>
Public Member Functions | |
virtual | ~IRandom () |
virtual int | binomial (int max, double prob)=0 |
Sample a binomial distribution. More... | |
virtual int | poisson (double mean)=0 |
Sample a Poisson distribution. More... | |
virtual double | normal (double mean, double sigma)=0 |
Sample a normal distribution. More... | |
virtual double | uniform (double begin, double end)=0 |
Sample a uniform distribution. More... | |
virtual double | exponential (double mean)=0 |
Sample an exponential distribution. More... | |
virtual int | range (int first, int last)=0 |
Sample a uniform integer range. More... | |
Public Member Functions inherited from WireCell::IComponent< IRandom > | |
virtual | ~IComponent () |
Public Member Functions inherited from WireCell::Interface | |
virtual | ~Interface () |
Additional Inherited Members | |
Public Types inherited from WireCell::IComponent< IRandom > | |
typedef std::shared_ptr< IRandom > | pointer |
Access subclass facet by pointer. More... | |
typedef std::vector< pointer > | vector |
Vector of shared pointers. More... | |
Public Types inherited from WireCell::Interface | |
typedef std::shared_ptr< Interface > | pointer |
|
virtual |
Definition at line 152 of file IfaceDesctructors.cxx.
|
pure virtual |
Sample a binomial distribution.
Implemented in WireCell::Gen::Random.
|
pure virtual |
Sample an exponential distribution.
Implemented in WireCell::Gen::Random.
|
pure virtual |
Sample a normal distribution.
Implemented in WireCell::Gen::Random.
|
pure virtual |
Sample a Poisson distribution.
Implemented in WireCell::Gen::Random.
|
pure virtual |
Sample a uniform integer range.
Implemented in WireCell::Gen::Random.
|
pure virtual |
Sample a uniform distribution.
Implemented in WireCell::Gen::Random.