function GenParetoCDF(x: Double; k: Double; Mu: Double; sigma: Double): Double;
Generalized Pareto (GPD) cumulative distribution function (CDF).
| # | Name | Description |
|---|---|---|
| 1 | x | Distribution domain, real value |
| 2 | if k >= 0 valid on (Mu, +Inf), if k < 0 valid when 0 <= (x-Mu)/sigma <= -1/k. | |
| 3 | k | Distribution shape parameter, real value. |
| 4 | Mu | Distribution location parameter, real value. |
| 5 | sigma | Distribution scale parameter, positive real value (sigma>0). |
Returns: Double - the Generalized Pareto CDF for value x using shape k, location Mu and positive scale sigma. Returns NaN if sigma<=0, if (x-Mu)/sigma<0, or (for k<0) if 1+k(x-Mu)/sigma<=0.
Remarks:
With z=(x-mu)/sigma the Generalized Pareto CDF is
CDF(x | k,mu,sigma) = { 1-(1+k z)^(-1/k), if k != 0
{ [1.2ex] 1-exp[-z], if k=0 , z=(x-mu)/sigma .
This shape convention matches scipy.stats genpareto with c=k. It is monotone non-decreasing. Returns NaN for sigma<=0, for z<0, or when 1+k z <= 0 for k < 0.