Function Reference: ricecdf

statistics: p = ricecdf (x, nu, sigma)
statistics: p = ricecdf (x, nu, sigma, "upper")

Rician cumulative distribution function (CDF).

For each element of x, compute the cumulative distribution function (CDF) of the Rician distribution with non-centrality (distance) parameter nu and scale parameter sigma. The size of p is the common size of x, nu, and sigma. A scalar input functions as a constant matrix of the same size as the other inputs.

p = ricecdf (x, nu, sigma, "upper") computes the upper tail probability of the Rician distribution with parameters nu and sigma, at the values in x.

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

See also: riceinv, ricepdf, ricernd, ricefit, ricelike, ricestat

Source Code: ricecdf

Example: 1

 

 ## Plot various CDFs from the Rician distribution
 x = 0:0.01:10;
 p1 = ricecdf (x, 0, 1);
 p2 = ricecdf (x, 0.5, 1);
 p3 = ricecdf (x, 1, 1);
 p4 = ricecdf (x, 2, 1);
 p5 = ricecdf (x, 4, 1);
 plot (x, p1, "-b", x, p2, "g", x, p3, "-r", x, p4, "-m", x, p5, "-k")
 grid on
 ylim ([0, 1])
 xlim ([0, 8])
 legend ({"ν = 0, σ = 1", "ν = 0.5, σ = 1", "ν = 1, σ = 1", ...
          "ν = 2, σ = 1", "ν = 4, σ = 1"}, "location", "southeast")
 title ("Rician CDF")
 xlabel ("values in x")
 ylabel ("probability")

                    
plotted figure

Example: 2

 

 ## Plot various CDFs from the Rician distribution
 x = 0:0.01:10;
 p1 = ricecdf (x, 0, 0.5);
 p2 = ricecdf (x, 0, 2);
 p3 = ricecdf (x, 0, 3);
 p4 = ricecdf (x, 2, 2);
 p5 = ricecdf (x, 4, 2);
 plot (x, p1, "-b", x, p2, "g", x, p3, "-r", x, p4, "-m", x, p5, "-k")
 grid on
 ylim ([0, 1])
 xlim ([0, 8])
 legend ({"ν = 0, σ = 0.5", "ν = 0, σ = 2", "ν = 0, σ = 3", ...
          "ν = 2, σ = 2", "ν = 4, σ = 2"}, "location", "southeast")
 title ("Rician CDF")
 xlabel ("values in x")
 ylabel ("probability")

                    
plotted figure