poisspdf
Poisson probability density function (PDF).
For each element of x, compute the probability density function (PDF) of the Poisson distribution with rate parameter lambda. The size of y is the common size of x and lambda. A scalar input functions as a constant matrix of the same size as the other inputs.
Further information about the Poisson distribution can be found at https://en.wikipedia.org/wiki/Poisson_distribution
See also: poisscdf, poissinv, poissrnd, poissfit, poisslike, poisstat
Source Code: poisspdf
## Plot various PDFs from the Poisson distribution
x = 0:20;
y1 = poisspdf (x, 1);
y2 = poisspdf (x, 4);
y3 = poisspdf (x, 10);
plot (x, y1, "*b", x, y2, "*g", x, y3, "*r")
grid on
ylim ([0, 0.4])
legend ({"λ = 1", "λ = 4", "λ = 10"}, "location", "northeast")
title ("Poisson PDF")
xlabel ("values in x (number of occurences)")
ylabel ("density")
|