Implementation according to: Peter John Acklam. The relative error is less than 1e-9.
function cdfInvNormal extends Modelica.Icons.Function; input Real u(min = 0, max = 1) "Number in the range 0 <= u <= 1"; output Real y "Quantile of 1/sqrt(2*pi) * exp(-x^2/2): y = sqrt(2)*erfinv(2*u-1)"; end cdfInvNormal;
Date | Description | ||
---|---|---|---|
June 22, 2015 |
|