ROOT
6.06/09
Reference Guide
|
Documentation for the Random class.
Public Types | |
typedef Engine::BaseType | EngineBaseType |
typedef RandomFunctions< Engine, EngineBaseType > | RndmFunctions |
Public Member Functions | |
Random () | |
Random (unsigned int seed) | |
double | Rndm () |
void | RndmArray (int n, double *array) |
Generate an array of random numbers between ]0,1] 0 is excluded and 1 is included Function to preserve ROOT Trandom compatibility. More... | |
std::string | Type () const |
Return the type (name) of the used generator. More... | |
unsigned int | EngineSize () const |
Return the size of the generator state. More... | |
double | operator() () |
unsigned int | Integer () |
Engine & | Rng () |
double | Exp (double tau) |
Exponential distribution. More... | |
double | Gaus (double mean=0, double sigma=1) |
double | Gamma (double a, double b) |
double | LogNormal (double zeta, double sigma) |
Log-normal distribution. More... | |
double | ChiSquare (double nu) |
chi-square More... | |
double | FDist (double nu1, double nu2) |
F-distribution. More... | |
double | tDist (double nu) |
t student distribution More... | |
double | Landau (double m=0, double s=1) |
Landau distribution. More... | |
double | BreitWigner (double mean=0., double gamma=1) |
Breit Wigner distribution. More... | |
void | Circle (double &x, double &y, double r=1) |
generate random numbers in a 2D circle of radious 1 More... | |
void | Sphere (double &x, double &y, double &z, double r=1) |
generate random numbers in a 3D sphere of radious 1 More... | |
unsigned int | Binomial (unsigned int ntot, double prob) |
discrete distributions More... | |
unsigned int | Poisson (double mu) |
Poisson distribution. More... | |
unsigned int | NegativeBinomial (double n, double prob) |
Negative Binomial distribution First parameter is n, second is probability To be consistent with Random::Binomial. More... | |
std::vector< unsigned int > | Multinomial (unsigned int ntot, const std::vector< double > &p) |
Multinomial distribution. More... | |
double | Uniform (double a, double b) |
double | Uniform (double a=1.0) |
double | Uniform2 (double a, double b) |
RandomFunctions< Engine, EngineBaseType > & | Functions () |
void | SetSeed (int seed) |
Private Attributes | |
Engine | fEngine |
RndmFunctions | fFunctions |
#include <Math/Random.h>
typedef Engine::BaseType ROOT::Math::Random< Engine >::EngineBaseType |
typedef RandomFunctions<Engine, EngineBaseType> ROOT::Math::Random< Engine >::RndmFunctions |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 106 of file Random.h.
Referenced by unuranSimple().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Negative Binomial distribution First parameter is n, second is probability To be consistent with Random::Binomial.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 200 of file Random.h.
Referenced by ROOT::Math::Random< Engine >::EngineSize(), ROOT::Math::Random< Engine >::Integer(), ROOT::Math::Random< Engine >::operator()(), ROOT::Math::Random< Engine >::Random(), ROOT::Math::Random< Engine >::Rndm(), ROOT::Math::Random< Engine >::RndmArray(), ROOT::Math::Random< Engine >::Rng(), ROOT::Math::Random< Engine >::SetSeed(), and ROOT::Math::Random< Engine >::Type().
|
private |
Definition at line 201 of file Random.h.
Referenced by ROOT::Math::Random< Engine >::Binomial(), ROOT::Math::Random< Engine >::BreitWigner(), ROOT::Math::Random< Engine >::ChiSquare(), ROOT::Math::Random< Engine >::Circle(), ROOT::Math::Random< Engine >::Exp(), ROOT::Math::Random< Engine >::FDist(), ROOT::Math::Random< Engine >::Functions(), ROOT::Math::Random< Engine >::Gamma(), ROOT::Math::Random< Engine >::Gaus(), ROOT::Math::Random< Engine >::Landau(), ROOT::Math::Random< Engine >::LogNormal(), ROOT::Math::Random< Engine >::Multinomial(), ROOT::Math::Random< Engine >::NegativeBinomial(), ROOT::Math::Random< Engine >::Poisson(), ROOT::Math::Random< Engine >::Sphere(), ROOT::Math::Random< Engine >::tDist(), ROOT::Math::Random< Engine >::Uniform(), and ROOT::Math::Random< Engine >::Uniform2().