Main Content

wblstat

Weibull mean and variance

Syntax

[M,V] = wblstat(A,B)

Description

[M,V] = wblstat(A,B)returns the mean of and variance for the Weibull distribution with scale parameter,Aand shape parameter,B. Vector or matrix inputs forAandBmust have the same size, which is also the size ofMandV. A scalar input forAorBis expanded to a constant matrix with the same dimensions as the other input.

The mean of the Weibull distribution with parametersaandbis

a [ Γ ( 1 + b 1 ) ]

and the variance is

a 2 [ Γ ( 1 + 2 b 1 ) Γ ( 1 + b 1 ) 2 ]

Examples

[m,v] = wblstat(1:4,1:4) m = 1.0000 1.7725 2.6789 3.6256 v = 1.0000 0.8584 0.9480 1.0346 wblstat(0.5,0.7) ans = 0.6329

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a