Skip to main content
. 2015 Nov 20;8:36. doi: 10.1186/s13040-015-0069-x

Table 5.

Sample M i when CDF is FZi(z)

(a) Take a too high initial guess of M i (default: 1000). Initialize variable b to half of this value.
(a) Randomly select a real number r n∈[ 0,1].
(c) If FZi(Mi) is lower than r n, M i=M i+b, else M i=M ib. Divide b by 2.
(d) Repeat step (c) until b is below the desired precision (default: 0.000001).