Probabilities::WeibullPDF Function

Overload List

#SignatureDescription
1double WeibullPDF(double x, double a, double b);Weibull probability density function (PDF).
2void WeibullPDF(TDenseMtxVec *X, double A, double B, TDenseMtxVec *Res);Weibull distribution PDF (vectorized).

Overload 1: double WeibullPDF(double x, double a, double b);

Weibull probability density function (PDF).

#NameTypeDescription
1xdoubleFunction domain, zero or real positive value.
2adoubleDistribution scale parameter, real positive value (rate-like: enters as exp(-a x^b)).
3bdoubleDistribution shape parameter, real positive value.

Returns: the Weibull probability density function for value x using the parameters a and b. Parameters a and b must be positive, otherwise the result is NAN.

Remarks:

The Weibull probability density function, in the parameterization used here, is

PDF(x| a,b)=a b x^(b-1)exp(-a x^b), x >= 0

where a is the (rate-like) scale parameter and b the shape parameter. This maps to the standard scale s by s = a^{-1/b}. Domain: x >= 0, a > 0, b > 0. For a <= 0 or b <= 0 the result is NAN. At x = 0 the value is +INF when b < 1 and equals a when b = 1.

See Also: Probabilities::WeibullCDF, Probabilities::WeibullCDFInv
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler

Overload 2: void WeibullPDF(TDenseMtxVec *X, double A, double B, TDenseMtxVec *Res);

Weibull distribution PDF (vectorized).

#NameTypeDescription
1XTDenseMtxVec *Defines distribution domain, real vector or matrix with positive real values.
2AdoubleDistribution scale parameter, real positive value.
3BdoubleDistribution shape parameter, real positive value.
4ResTDenseMtxVec *After calculation stores the PDF calculated from X, a and b. Length and Complex properties of Res are adjusted automatically to match Length and Complex properties of X.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler