BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Double precision (48 bits) version of Second generation of Ranlux generator with luxury level of 2 (It throws away 397 value for every 12 used) see here
Definition at line 408 of file GSLRndmEngines.h.
Public Types | |
typedef GSLRandomEngine | BaseType |
Public Member Functions | |
GSLRngRanLuxD2 () | |
void | Initialize () |
unsigned long | IntRndm () const |
unsigned long | MaxInt () const |
unsigned long | MinInt () const |
std::string | Name () const |
double | operator() () const |
void | RandomArray (double *begin, double *end) const |
template<class Iterator > | |
void | RandomArray (Iterator begin, Iterator end) const |
double | Rndm () const |
unsigned long | RndmInt (unsigned long max) const |
void | SetSeed (unsigned int seed) const |
unsigned int | Size () const |
void | Terminate () |
Random Distributions | |
Implemented using the GSL Random number Distributions | |
double | Gaussian (double sigma) const |
double | GaussianZig (double sigma) const |
double | GaussianRatio (double sigma) const |
double | GaussianTail (double a, double sigma) const |
void | Gaussian2D (double sigmaX, double sigmaY, double rho, double &x, double &y) const |
double | Exponential (double mu) const |
double | Cauchy (double a) const |
double | Landau () const |
double | Gamma (double a, double b) const |
double | Beta (double a, double b) const |
double | LogNormal (double zeta, double sigma) const |
double | ChiSquare (double nu) const |
double | FDist (double nu1, double nu2) const |
double | tDist (double nu) const |
double | Rayleigh (double sigma) const |
double | Logistic (double a) const |
double | Pareto (double a, double b) const |
void | Dir2D (double &x, double &y) const |
void | Dir3D (double &x, double &y, double &z) const |
unsigned int | Poisson (double mu) const |
unsigned int | Binomial (double p, unsigned int n) const |
unsigned int | NegativeBinomial (double p, double n) const |
std::vector< unsigned int > | Multinomial (unsigned int ntot, const std::vector< double > &p) const |
GSLRngWrapper * | fRng |
unsigned int | fCurTime |
void | SetType (GSLRngWrapper *r) |
internal method used by the derived class to set the type of generators More... | |
GSLRngWrapper * | Engine () |
internal method to return the engine Used by class like GSLMCIntegrator to set the engine More... | |
Definition at line 410 of file GSLRndmEngines.h.
ROOT::Math::GSLRngRanLuxD2::GSLRngRanLuxD2 | ( | ) |
|
inherited |
Beta distribution
|
inherited |
Binomial distribution
|
inherited |
Cauchy distribution
|
inherited |
Chi square distribution
|
inherited |
generate random numbers in a 2D circle of radious 1
|
inherited |
generate random numbers in a 3D sphere of radious 1
|
inlineprotectedinherited |
internal method to return the engine Used by class like GSLMCIntegrator to set the engine
Definition at line 315 of file GSLRndmEngines.h.
References ROOT::Math::GSLRandomEngine::fRng.
|
inherited |
Exponential distribution
|
inherited |
F distrbution
|
inherited |
Gamma distribution
|
inherited |
Gaussian distribution - default method is Box-Muller (polar method)
|
inherited |
Bivariate Gaussian distribution with correlation
|
inherited |
Gaussian distribution - Ratio method
|
inherited |
Gaussian Tail distribution
|
inherited |
Gaussian distribution - Ziggurat method
|
inherited |
initialize the generator If no rng is present the default one based on Mersenne and Twister is created
|
inlineinherited |
Generate an integer number between [0,max_generator-1] (including 0 and max-1) if max is larger than available range of algorithm an error message is printed and zero is returned
Definition at line 133 of file GSLRndmEngines.h.
References ROOT::Math::GSLRandomEngine::MaxInt(), and ROOT::Math::GSLRandomEngine::RndmInt().
|
inherited |
Landau distribution
|
inherited |
Logistic distribution
|
inherited |
Log Normal distribution
|
inherited |
return the maximum integer +1 a generator can handle
Referenced by ROOT::Math::GSLRandomEngine::IntRndm().
|
inherited |
return the minimum integer a generator can handle typically this value is 0
|
inherited |
Multinomial distribution
|
inherited |
return name of generator
|
inherited |
Negative Binomial distribution
|
inherited |
Generate a random number between ]0,1] 0 is excluded and 1 is included
Referenced by ROOT::Math::GSLRandomEngine::RandomArray().
|
inherited |
Pareto distribution
|
inherited |
Poisson distribution
|
inherited |
Generate an array of random numbers The iterators points to the random numbers
|
inlineinherited |
Generate an array of random numbers. The iterators points to the random numbers
Definition at line 142 of file GSLRndmEngines.h.
References ROOT::Math::GSLRandomEngine::operator()().
|
inherited |
Rayleigh distribution
|
inlineinherited |
Generate a random number between ]0,1] 0 is excluded and 1 is included
Definition at line 120 of file GSLRndmEngines.h.
|
inherited |
Generate an integer number between [0,max-1] (including 0 and max-1) if max is larger than available range of algorithm an error message is printed and zero is returned
Referenced by ROOT::Math::GSLRandomEngine::IntRndm().
|
inherited |
set the random generator seed
|
inlineprotectedinherited |
internal method used by the derived class to set the type of generators
Definition at line 309 of file GSLRndmEngines.h.
References ROOT::Math::GSLRandomEngine::fRng.
|
inherited |
return the state size of generator
|
inherited |
t student distribution
|
inherited |
delete pointer to contained rng
|
mutableprivateinherited |
Definition at line 322 of file GSLRndmEngines.h.
|
privateinherited |
Definition at line 321 of file GSLRndmEngines.h.
Referenced by ROOT::Math::GSLRandomEngine::Engine(), and ROOT::Math::GSLRandomEngine::SetType().