ricepdf
Rician probability density function (PDF).
For each element of x, compute the probability density function (PDF) of the Rician distribution with non-centrality (distance) parameter s and scale parameter sigma. The size of y is the common size of x, s, and sigma. A scalar input functions as a constant matrix of the same size as the other inputs.
Further information about the Rician distribution can be found at https://en.wikipedia.org/wiki/Rice_distribution
See also: ricecdf, riceinv, ricernd, ricefit, ricelike, ricestat
Source Code: ricepdf
## Plot various PDFs from the Rician distribution
x = 0:0.01:8;
y1 = ricepdf (x, 0, 1);
y2 = ricepdf (x, 0.5, 1);
y3 = ricepdf (x, 1, 1);
y4 = ricepdf (x, 2, 1);
y5 = ricepdf (x, 4, 1);
plot (x, y1, "-b", x, y2, "-g", x, y3, "-r", x, y4, "-m", x, y5, "-k")
grid on
ylim ([0, 0.65])
xlim ([0, 8])
legend ({"s = 0, σ = 1", "s = 0.5, σ = 1", "s = 1, σ = 1", ...
"s = 2, σ = 1", "s = 4, σ = 1"}, "location", "northeast")
title ("Rician PDF")
xlabel ("values in x")
ylabel ("density")
|