Function Reference: nakacdf

statistics: p = nakacdf (x, mu, omega)
statistics: p = nakacdf (x, mu, omega, "upper")

Nakagami cumulative distribution function (CDF).

For each element of x, compute the cumulative distribution function (CDF) of the Nakagami distribution with shape parameter mu and spread parameter omega. The size of p 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.

p = nakacdf (x, mu, omega, "upper") computes the upper tail probability of the Nakagami distribution with parameters mu and beta, at the values in x.

Further information about the Nakagami distribution can be found at https://en.wikipedia.org/wiki/Nakagami_distribution

See also: nakainv, nakapdf, nakarnd, nakafit, nakalike, nakastat

Source Code: nakacdf

Example: 1

 

 ## Plot various CDFs from the Nakagami distribution
 x = 0:0.01:3;
 p1 = nakacdf (x, 0.5, 1);
 p2 = nakacdf (x, 1, 1);
 p3 = nakacdf (x, 1, 2);
 p4 = nakacdf (x, 1, 3);
 p5 = nakacdf (x, 2, 1);
 p6 = nakacdf (x, 2, 2);
 p7 = nakacdf (x, 5, 1);
 plot (x, p1, "-r", x, p2, "-g", x, p3, "-y", x, p4, "-m", ...
       x, p5, "-k", x, p6, "-b", x, p7, "-c")
 grid on
 xlim ([0, 3])
 legend ({"μ = 0.5, ω = 1", "μ = 1, ω = 1", "μ = 1, ω = 2", ...
          "μ = 1, ω = 3", "μ = 2, ω = 1", "μ = 2, ω = 2", ...
          "μ = 5, ω = 1"}, "location", "southeast")
 title ("Nakagami CDF")
 xlabel ("values in x")
 ylabel ("probability")

                    
plotted figure