exppdf
Exponential probability density function (PDF).
For each element of x, compute the probability density function (PDF) of the exponential distribution with mean parameter mu. The size of y is the common size of x and mu. A scalar input functions as a constant matrix of the same size as the other inputs.
Default value for mu = 1.
A common alternative parameterization of the exponential distribution is to use the parameter defined as the mean number of events in an interval as opposed to the parameter , which is the mean wait time for an event to occur. and are reciprocals, i.e. .
Further information about the exponential distribution can be found at https://en.wikipedia.org/wiki/Exponential_distribution
See also: expcdf, expinv, exprnd, expfit, explike, expstat
Source Code: exppdf
## Plot various PDFs from the exponential distribution x = 0:0.01:5; y1 = exppdf (x, 2/3); y2 = exppdf (x, 1.0); y3 = exppdf (x, 2.0); plot (x, y1, "-b", x, y2, "-g", x, y3, "-r") grid on ylim ([0, 1.5]) legend ({"μ = 2/3", "μ = 1", "μ = 2"}, "location", "northeast") title ("Exponential PDF") xlabel ("values in x") ylabel ("density") |