Statistics Toolbox | ![]() ![]() |
Weibull probability density function (pdf)
Syntax
Description
Y = weibpdf(X,A,B)
computes the Weibull pdf at each of the values in X
using the corresponding parameters in A and B. Vector or matrix inputs for X, A, and B must all have the same size. A scalar input is expanded to a constant matrix with the same dimensions as the other input. The parameters in A and B must all be positive.
Some references refer to the Weibull distribution with a single parameter. This corresponds to weibpdf
with A = 1
.
Examples
The exponential distribution is a special case of the Weibull distribution.
lambda = 1:6; y = weibpdf(0.1:0.1:0.6,lambda,1) y = 0.9048 1.3406 1.2197 0.8076 0.4104 0.1639 y1 = exppdf(0.1:0.1:0.6,1./lambda) y1 = 0.9048 1.3406 1.2197 0.8076 0.4104 0.1639
Reference
[1] Devroye, L., Non-Uniform Random Variate Generation. Springer-Verlag. New York, 1986.
See Also
pdf
, weibcdf
, weibfit
, weibinv
, weiblike
, weibplot
, weibrnd
, weibstat
![]() | weiblike | weibplot | ![]() |