Public Member Functions | List of all members
WireCell::IRandom Class Referenceabstract

#include <IRandom.h>

Inheritance diagram for WireCell::IRandom:
WireCell::IComponent< IRandom > WireCell::Interface WireCell::Gen::Random

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< IRandompointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

Definition at line 9 of file IRandom.h.

Constructor & Destructor Documentation

IRandom::~IRandom ( )
virtual

Definition at line 152 of file IfaceDesctructors.cxx.

152 {}

Member Function Documentation

virtual int WireCell::IRandom::binomial ( int  max,
double  prob 
)
pure virtual

Sample a binomial distribution.

Implemented in WireCell::Gen::Random.

virtual double WireCell::IRandom::exponential ( double  mean)
pure virtual

Sample an exponential distribution.

Implemented in WireCell::Gen::Random.

virtual double WireCell::IRandom::normal ( double  mean,
double  sigma 
)
pure virtual

Sample a normal distribution.

Implemented in WireCell::Gen::Random.

virtual int WireCell::IRandom::poisson ( double  mean)
pure virtual

Sample a Poisson distribution.

Implemented in WireCell::Gen::Random.

virtual int WireCell::IRandom::range ( int  first,
int  last 
)
pure virtual

Sample a uniform integer range.

Implemented in WireCell::Gen::Random.

virtual double WireCell::IRandom::uniform ( double  begin,
double  end 
)
pure virtual

Sample a uniform distribution.

Implemented in WireCell::Gen::Random.


The documentation for this class was generated from the following files: