A++ » MATH » ROOT::Math::Random<ROOT::Math::LCGEngine>

class ROOT::Math::Random<ROOT::Math::LCGEngine>


       Documentation for the Random class

       @ingroup  Random

Function Members (Methods)

public:
~Random<ROOT::Math::LCGEngine>()
doubleBeta(double a, double b)
unsigned intBinomial(unsigned int ntot, double prob)
doubleBreitWigner(double mean = 0., double gamma = 1)
doubleChiSquare(double nu)
voidCircle(double& x, double& y, double r = 1)
unsigned intEngineSize() const
doubleExp(double tau)
doubleFDist(double nu1, double nu2)
ROOT::Math::RandomFunctions<ROOT::Math::LCGEngine,ROOT::Math::Random<ROOT::Math::LCGEngine>::EngineBaseType>&Functions()
doubleGamma(double a, double b)
doubleGaus(double mean = 0, double sigma = 1)
uint64_tInteger()
doubleLandau(double m = 0, double s = 1)
doubleLogistic(double a)
doubleLogNormal(double zeta, double sigma)
static uint64_tMaxInt()
vector<unsigned int>Multinomial(unsigned int ntot, const vector<double>& p)
unsigned intNegativeBinomial(double n, double prob)
doubleoperator()()
ROOT::Math::Random<ROOT::Math::LCGEngine>&operator=(ROOT::Math::Random<ROOT::Math::LCGEngine>&&)
ROOT::Math::Random<ROOT::Math::LCGEngine>&operator=(const ROOT::Math::Random<ROOT::Math::LCGEngine>&)
doublePareto(double a, double b)
unsigned intPoisson(double mu)
ROOT::Math::Random<ROOT::Math::LCGEngine>Random<ROOT::Math::LCGEngine>()
ROOT::Math::Random<ROOT::Math::LCGEngine>Random<ROOT::Math::LCGEngine>(unsigned int seed)
ROOT::Math::Random<ROOT::Math::LCGEngine>Random<ROOT::Math::LCGEngine>(ROOT::Math::Random<ROOT::Math::LCGEngine>&&)
ROOT::Math::Random<ROOT::Math::LCGEngine>Random<ROOT::Math::LCGEngine>(const ROOT::Math::Random<ROOT::Math::LCGEngine>&)
doubleRayleigh(double sigma)
doubleRndm()
voidRndmArray(int n, double* array)
ROOT::Math::LCGEngine&Rng()
voidSetSeed(int seed)
voidSphere(double& x, double& y, double& z, double r = 1)
doubletDist(double nu)
stringType() const
doubleUniform(double a = 1.)
doubleUniform(double a, double b)
doubleUniform2(double a, double b)

Data Members

private:
ROOT::Math::LCGEnginefEnginerandom generator engine
ROOT::Math::Random<ROOT::Math::LCGEngine>::RndmFunctionsfFunctions! random functions object

Class Charts

Inheritance Chart:
ROOT::Math::Random<ROOT::Math::LCGEngine>

Function documentation

fEngine. SetSeed(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

std::string Type() const
         Return the type (name) of the used generator

unsigned int EngineSize() const
       Return the size of the generator state

double operator()()
uint64_t Integer()
uint64_t MaxInt()
Engine & Rng()
double Exp(double tau)
 Exponential distribution
double Gaus(double mean = 0, double sigma = 1)
double Gamma(double a, double b)
 Gamma distribution
double Beta(double a, double b)
 Beta distribution
double LogNormal(double zeta, double sigma)
Log-normal distribution
double ChiSquare(double nu)
 chi-square
double Rayleigh(double sigma)
 Rayleigh distribution
double Logistic(double a)
 Logistic distribution
double Pareto(double a, double b)
 Pareto distribution
double FDist(double nu1, double nu2)
F-distribution
double tDist(double nu)
  t student distribution
double Landau(double m = 0, double s = 1)
 Landau distribution
double BreitWigner(double mean = 0., double gamma = 1)
  Breit Wigner distribution
void Circle(double& x, double& y, double r = 1)
  generate random numbers in a 2D circle of radious 1
void Sphere(double& x, double& y, double& z, double r = 1)
  generate random numbers in a 3D sphere of radious 1
unsigned int Binomial(unsigned int ntot, double prob)
discrete distributions
 Binomial distribution
unsigned int Poisson(double mu)
   Poisson distribution
unsigned int NegativeBinomial(double n, double prob)
 Negative Binomial distribution
  First parameter is n, second is probability
  To be consistent with Random::Binomial
std::vector<unsigned int> Multinomial(unsigned int ntot, const vector<double>& p)
     Multinomial distribution
double Uniform(double a, double b)
return fFunctions. Uniform(double a, double b)
double Uniform2(double a, double b)