![]() |
![]() |
|
PLS_Toolbox Documentation: weibulldf | < unifdf | abline > |
weibulldf
Purpose
Weibull distribution.
Synopsis
prob = weibulldf(function,x,a,b)
Description
Estimates cumulative distribution function (cumulative, cdf), probability density function (density, pdf), quantile (inverse of cdf), or random numbers for a Weibull distribution.
This distribution is used to model lifetime data (time to failure). It is skewed to the right, but may appear symmetric for data in which there are relatively no small outcomes. Negative values in the sample are ignored.
INPUTS:
Note: If inputs (x, a, and b) are not equal in size, the function will attempt to resize all inputs to the largest input using the RESIZE function.
Note: Functions will typically allow input values outside of the acceptable range to be passed but such values will return NaN in the results.
Examples
Cumulative:
>> prob = weibulldf('c',2,1,2)
prob =
0.9817
>> x = [0:0.1:10];
>> plot(x,weibulldf('c',x,1,2),'b-',x,weibulldf('c',x,3,7),'r-')
Density:
>> prob = weibulldf('d',2,1,1)
prob =
0.1353
>> x = [0:0.1:10];
>> plot(x,weibulldf('d',x,2,1),'b-',x,weibulldf('d',x,0.5,1),'r-')
Quantile:
>> prob = weibulldf('q',0.5,1,2)
prob =
0.8326
Random:
>> prob = weibulldf('r',[4 1],2,1)
ans =
5.4812
4.9755
1.0562
4.4820
See Also
betadf, cauchydf, chidf, expdf, gammadf, gumbeldf, laplacedf, lognormdf, logisdf, normdf, paretodf, raydf, triangledf, unifdf
< unifdf | abline > |