Distributions Template Parameter Method#
Method Type |
Distributions |
Math Description |
|---|---|---|
|
|
Standard method. It involves transforming the output of a generator by scaling and shifting it to fit within the desired interval. |
|
|
Generates normally distributed random number x through the pair of uniformly distributed numbers u1 and u2 according to the formula: \(x = \sqrt {-2 \ln u_1} \sin {2 \pi u_2}\). |
|
|
Generates normally distributed random numbers x1 and x2 through the pair of uniformly distributed numbers u1 and u2 according to the formulas: \(x_1 = \sqrt{-2 \ln u_1} \sin {2 \pi u_2}\), \(x_2 = \sqrt{-2 \ln u_1} \cos {2 \pi u_2}\). |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Normally distributed random numbers x1 and x2 are produced through the pair of uniformly distributed numbers u1 and u2 according to the formulas: \(x_1 = -2 \ln u_1 \sin {2 \pi u_2}\), \(x_2 = -2 \ln u_1 \cos {2 \pi u_2}\) Then x1 and x2 are converted to lognormal distribution. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
For \(\alpha > 1\), a gamma distributed random number is generated as a cube of a properly scaled normal random number; for \(0.6 \le \alpha < 1\), a gamma distributed random number is generated using rejection from Weibull distribution; for \(\alpha < 0.6\), a gamma distributed random number is obtained using transformation of exponential power distribution; for \(\alpha = 1\), gamma distribution is reduced to exponential distribution. |
|
|
|
|
|
(most common): If \(\nu \ge 17\) or ν is odd and \(5 \le \nu \le 15\), a chi-square distribution is reduced to a Gamma distribution with these parameters: Shape \(\alpha = \nu / 2\) Offset \(a = 0\) Scale factor \(\beta = 2\). The random numbers of the Gamma distribution are generated. |
|
|
BoxMuller method for multivariate Gaussian distribution. BoxMuller_2 method for multivariate Gaussian distribution. Inverse cumulative distribution function (ICDF) method. |
|
|
Acceptance/rejection method for \(ntrial * \min(p, 1p) \ge 30\) with decomposition into four regions: Two parallelograms Triangle Left exponential tail Right exponential tail |
|
|
Acceptance/rejection method for \(\lambda \ge 27\) with decomposition into four regions: Two parallelograms Triangle Left exponential tail Right exponenetial tail |
|
|
for \(\lambda \ge 1\), method based on Poisson inverse CDF approximation by Gaussian inverse CDF; for \(\lambda < 1\), table lookup method is used. |
|
|
Acceptance/rejection method for large mode of distribution with decomposition into three regions: Rectangular Left exponential tail Right exponential tail |
|
|
Acceptance/rejection method for: \(\frac{(a-1) \cdot (1-p)}{p} \geq 100\) with decomposition into five regions: Rectangular (2) trapezoid Left exponential tail Right exponential tail |
|
|
Multinomial distribution with parameters |