nakainv
Inverse of the Nakagami cumulative distribution function (iCDF).
For each element of p, compute the quantile (the inverse of the CDF) of the Nakagami distribution with shape parameter mu and spread parameter omega. The size of x is the common size of x, mu, and omega. A scalar input functions as a constant matrix of the same size as the other inputs.
Both parameters must be positive reals and mu >= 0.5
. For
mu < 0.5
or omega <= 0
, NaN
is returned.
Further information about the Nakagami distribution can be found at https://en.wikipedia.org/wiki/Nakagami_distribution
See also: nakacdf, nakapdf, nakarnd, nakafit, nakalike, nakastat
Source Code: nakainv
## Plot various iCDFs from the Nakagami distribution p = 0.001:0.001:0.999; x1 = nakainv (p, 0.5, 1); x2 = nakainv (p, 1, 1); x3 = nakainv (p, 1, 2); x4 = nakainv (p, 1, 3); x5 = nakainv (p, 2, 1); x6 = nakainv (p, 2, 2); x7 = nakainv (p, 5, 1); plot (p, x1, "-r", p, x2, "-g", p, x3, "-y", p, x4, "-m", ... p, x5, "-k", p, x6, "-b", p, x7, "-c") grid on ylim ([0, 3]) legend ({"μ = 0.5, ω = 1", "μ = 1, ω = 1", "μ = 1, ω = 2", ... "μ = 1, ω = 3", "μ = 2, ω = 1", "μ = 2, ω = 2", ... "μ = 5, ω = 1"}, "location", "northwest") title ("Nakagami iCDF") xlabel ("probability") ylabel ("values in x") |