28 if (!
fUnuran.
Init(
"normal()",
"method=cstd;variant=6") ) {
bool InitBinomial(unsigned int ntot, double prob, const std::string &method="dstd")
Initialize method for the Binomial distribution Used to generate poisson numbers for a constant param...
double Sample()
Sample 1D distribution User is responsible for having previously correctly initialized with TUnuran::...
bool ReInitDiscrDist(unsigned int npar, double *params)
Reinitialize UNURAN by changing the distribution parameters but mantaining same distribution and meth...
int SampleDiscr()
Sample discrete distributions User is responsible for having previously correctly initialized with TU...
virtual void SetSeed(UInt_t seed=0)
Set the random generator seed.
bool InitPoisson(double mu, const std::string &method="dstd")
Initialize method for the Poisson distribution Used to generate poisson numbers for a constant parame...
R__EXTERN TRandom * gRandom
int Binomial(int n, double p)
bool Init(const std::string &distr, const std::string &method)
initialize with Unuran string interface
double Gaus(double mu, double sigma)