Distributions Template Parameter Method#
Method |
Distributions |
Math Description |
---|---|---|
|
|
Standard method. |
|
|
Generates normally distributed random number x thru the pair of uniformly distributed numbers \(u_1\) and \(u_2\) according to the formula: \(x = \sqrt{-2lnu_1}\sin(2 \pi u_2)\) |
|
|
Generates normally distributed random numbers \(x_1\) and \(x_2\) thru the pair of uniformly distributed numbers \(u_1\) and \(u_2\) according to the formulas: \(x_1 = \sqrt{-2lnu_1}\sin{2\pi u_2}\) \(x_2 = \sqrt{-2lnu_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. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
|
|
Generated normally distributed random numbers \(x_1\) and \(x_2\) by box_muller2 method are converted to lognormal distribution. |
|
|
For \(\alpha > 1\), a gamma distributed random number is generated as a cube of properly scaled normal random number; for \(0.6 \leq \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. |
|
|
Cheng-Jonhnk-Atkinson method. For \(min(p, q) > 1\), Cheng method is used; for \(min(p, q) < 1\), Johnk method is used, if \(q + K*p2 + C \leq 0 (K = 0.852..., C=-0.956...)\) otherwise, Atkinson switching algorithm is used; for \(max(p, q) < 1\), method of Johnk is used; for \(min(p, q) < 1, max(p, q)> 1\), Atkinson switching algorithm is used (CJA stands for Cheng, Johnk, Atkinson); for \(p = 1\) or \(q = 1\), inverse cumulative distribution function method is used; for \(p = 1\) and \(q = 1\), beta distribution is reduced to uniform distribution. |
|
|
(most common): If \(\nu \ge 17\) or \(\nu\) is odd and \(5 \leq \nu \leq 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. |
|
|
Acceptance/rejection method for \(ntrial * min(p, 1 - p) \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 exponential tail. |
|
|
for \(\lambda \ge 1\), method based on Poisson inverse CDF approximation by Gaussian inverse CDF; for \(\lambda < 1\), table lookup method is used. |
|
|
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)(1 - p)}{p} \ge 100\) with decomposition into five regions: rectangular, 2 trapezoid, left exponential tail, right exponential tail. |
|
|
Multinomial distribution with parameters \(m, k\), and a probability vector \(p\). Random numbers of the multinomial distribution are generated by Poisson Approximation method. |
|
|
BoxMuller method for gaussian_mv method. |
|
|
BoxMuller2 method for gaussian_mv method. |
|
|
Inverse cumulative distribution function (ICDF) method. |
Parent topic: Host Distributions