Categories &

Functions List

Function Reference: wblpdf

statistics: y = wblinv (x)
statistics: y = wblinv (x, lambda)
statistics: y = wblinv (x, lambda, k)

Weibull probability density function (PDF).

For each element of x, compute the probability density function (PDF) of the Weibull distribution with scale parameter lambda and shpe parameter k. The size of y is the common size of x, lambda, and k. A scalar input functions as a constant matrix of the same size as the other inputs.

Default values are lambda = 1, k = 1.

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

See also: wblcdf, wblinv, wblrnd, wblfit, wbllike, wblstat, wblplot

Source Code: wblpdf

Example: 1

 

 ## Plot various PDFs from the Weibul distribution
 x = 0:0.001:2.5;
 y1 = wblpdf (x, 1, 0.5);
 y2 = wblpdf (x, 1, 1);
 y3 = wblpdf (x, 1, 1.5);
 y4 = wblpdf (x, 1, 5);
 plot (x, y1, "-b", x, y2, "-r", x, y3, "-m", x, y4, "-g")
 grid on
 ylim ([0, 2.5])
 legend ({"λ = 5, k = 0.5", "λ = 9, k = 1", ...
          "λ = 6, k = 1.5", "λ = 2, k = 5"}, "location", "northeast")
 title ("Weibul PDF")
 xlabel ("values in x")
 ylabel ("density")

                    
plotted figure