TUnuran(TRandom* r = 0, unsigned int log = 0) | |
~TUnuran() | |
bool | Init(const string& distr, const string& method) |
bool | Init(const TUnuranContDist& distr, const string& method = "auto") |
bool | Init(const TUnuranMultiContDist& distr, const string& method = "hitro") |
bool | Init(const TUnuranDiscrDist& distr, const string& method = "auto") |
bool | Init(const TUnuranEmpDist& distr, const string& method = "empk") |
bool | InitBinomial(unsigned int ntot, double prob, const string& method = "dstd") |
bool | InitPoisson(double mu, const string& method = "dstd") |
const string& | MethodName() const |
bool | ReInitDiscrDist(unsigned int npar, double* params) |
double | Sample() |
int | SampleDiscr() |
bool | SampleMulti(double* x) |
bool | SetLogLevel(unsigned int iflag = 1) |
bool | SetLogStream() |
void | SetSeed(unsigned int seed) |
bool | SetContDistribution(const TUnuranContDist& dist) |
bool | SetDiscreteDistribution(const TUnuranDiscrDist& dist) |
bool | SetEmpiricalDistribution(const TUnuranEmpDist& dist) |
bool | SetMethodAndInit() |
bool | SetMultiDistribution(const TUnuranMultiContDist& dist) |
bool | SetRandomGenerator() |
auto_ptr<TUnuranBaseDist> | fDist | pointer for distribution wrapper |
unur_gen* | fGen | pointer to the UnuRan C generator struct |
string | fMethod | string representing the method |
TRandom* | fRng | pointer to random number generator |
unur_distr* | fUdistr | pointer to the UnuRan C distribution struct |
initialization with a distribution and and generator the distribution object is copied in and managed by this class use auto_ptr to manage previously existing distribution objects
initialization with a distribution and method the distribution object is copied in and managed by this class use auto_ptr to manage previously existing distribution objects
initialization with a distribution and and generator the distribution object is copied in and managed by this class use auto_ptr to manage previously existing distribution objects
initialization with a distribution and and generator the distribution object is copied in and managed by this class use auto_ptr to manage previously existing distribution objects
internal method to set in unuran the function pointer for a continous univariate distribution
internal method to set in unuran the function pointer for a multivariate distribution
internal method to set in unuran the function pointer for a discrete univariate distribution
initializaton for a Binomial
re-initialization of UNURAN without freeing and creating a new fGen object works only for pre-defined distribution by changing their parameters