Percent point function/quantile function for normal distribution.
The probability (p)must be between 0.0 and 1.0.
The location parameter (mu) is an optional argument and will default to 0.0 if not passed.
The scale parameter (sigma) is an optional argument. If passed, it must be non-zero positive.
It will default to 1.0 if not passed.
The procedure uses bisection method.
Conditions p=0.0 and p=1.0 cannot return negative and positive infinity;
will return large negative or positive numbers (highly dependent on the tolerance threshold).
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Module Procedures
public impure function f_dst_norm_ppf(p, mu, sigma) result(x)
Impure wrapper function for f_dst_norm_ppf_core.
Handles optional arguments and invalid values for arguments.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=wp),
intent(in)
::
p
probability between 0.0 - 1.0
real(kind=wp),
intent(in),
optional
::
mu
distribution location (mean)
real(kind=wp),
intent(in),
optional
::
sigma
distribution dispersion/scale (standard deviation)