Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double WeibullPDF(double x, double a, double b); | Weibull probability density function (PDF). |
| 2 | void 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).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Function domain, zero or real positive value. |
| 2 | a | double | Distribution scale parameter, real positive value (rate-like: enters as exp(-a x^b)). |
| 3 | b | double | Distribution 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.
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).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Defines distribution domain, real vector or matrix with positive real values. |
| 2 | A | double | Distribution scale parameter, real positive value. |
| 3 | B | double | Distribution shape parameter, real positive value. |
| 4 | Res | TDenseMtxVec * | 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