113 bool Init(
const std::string & distr,
const std::string & method);
176 bool InitPoisson(
double mu,
const std::string & method =
"dstd");
186 bool InitBinomial(
unsigned int ntot,
double prob,
const std::string & method =
"dstd");
231 std::string
GetInfo(
bool extended =
false);
266 void SetSeed(
unsigned int seed);
308 std::unique_ptr<TUnuranBaseDist>
fDist;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
struct unur_urng UNUR_URNG
struct unur_distr UNUR_DISTR
TH1 is the base class of all histogram classes in ROOT.
This is the base class for the ROOT Random number generators.
TUnuranContDist class describing one dimensional continuous distribution.
TUnuranDiscrDist class for one dimensional discrete distribution.
TUnuranEmpDist class for describing empirical distributions.
TUnuranMultiContDist class describing multi dimensional continuous distributions.
std::string GetGenId() const
Return an ID string about the unuran generator method.
bool IsDistCont() const
Return true for a univariate continuous distribution.
bool SetMethodAndInit()
change the method and initialize Unuran with the previously given distribution
int SampleDiscr()
Sample discrete distributions.
bool SetLogStream()
set stream for log and error (not yet implemented)
const std::string & MethodName() const
used Unuran method
TUnuran(TUnuran &&)=delete
std::unique_ptr< TUnuranBaseDist > fDist
bool SetDiscreteDistribution(const TUnuranDiscrDist &dist)
int GetDistType() const
Return the type of the distribution.
bool InitBinomial(unsigned int ntot, double prob, const std::string &method="dstd")
Initialize method for the Binomial distribution.
bool SetContDistribution(const TUnuranContDist &dist)
std::string GetInfo(bool extended=false)
Return an information string about the used Unuran generator method.
bool SampleMulti(double *x)
Sample multidimensional distributions.
bool ReInitDiscrDist(unsigned int npar, double *params)
Reinitialize UNURAN by changing the distribution parameters but maintaining same distribution and met...
bool IsDistMultiCont() const
Return true for a multivariate continuous distribution.
bool Init(const std::string &distr, const std::string &method)
Initialize with Unuran string API interface.
TUnuran & operator=(const TUnuran &rhs)=delete
bool SetRandomGenerator()
bool SetLogLevel(unsigned int iflag=1)
set log level
bool SetMultiDistribution(const TUnuranMultiContDist &dist)
bool IsDistEmpirical() const
Return true for an empirical distribution.
double Sample()
Sample 1D distribution.
bool SetEmpiricalDistribution(const TUnuranEmpDist &dist)
TRandom * GetRandom()
Return instance of the random engine used.
TUnuran(const TUnuran &)=delete
bool InitPoisson(double mu, const std::string &method="dstd")
Initialize method for the Poisson distribution.
int GetDimension() const
Return the dimension of unuran generator method.
void SetSeed(unsigned int seed)
set the seed for the random number generator
void SetRandom(TRandom *r)
Set the random engine.
bool IsDistDiscrete() const
Return true for a discrete distribution.