Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double TriangularCDF(double x, double a, double b, double c); | Triangular cumulative distribution function (CDF). |
| 2 | void TriangularCDF(TDenseMtxVec *X, double a, double b, double c, TDenseMtxVec *Res); | Triangular distribution CDF (vectorized). |
Overload 1: double TriangularCDF(double x, double a, double b, double c);
Triangular cumulative distribution function (CDF).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | x | double | Distribution domain, real value on closed interval [a,b]. |
| 2 | a | double | Lower bound, real value, smaller than b. |
| 3 | b | double | Upper bound, real value, greater than a. |
| 4 | c | double | Mode (peak), real value on closed interval [a,b]. |
Returns: the triangular cumulative distribution function for value x using parameters a, b and c. Requires b > a and a <= c <= b and a <= x <= b, otherwise the result is NAN.
Remarks:
The triangular cumulative distribution function is
CDF(x| a,b,c)={ ((x-a)^2)/((b-a)(c-a)), if amp; a <= x <= c
{ [6pt] 1-((b-x)^2)/((b-a)(b-c)), if amp; c
It is the probability that an observation falls in (a, x]. Domain: b > a, a <= c <= b, a <= x <= b; the result rises monotonically from 0 to 1. Outside the support, or when the parameter ordering is violated, the result is NAN.
Declared in Dew::Math::Units::Probabilities · Dew.Math/Units.Probabilities.h · Cross-compiler
Overload 2: void TriangularCDF(TDenseMtxVec *X, double a, double b, double c, TDenseMtxVec *Res);
Triangular distribution CDF (vectorized).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TDenseMtxVec * | Distribution domain, real value on closed interval [a,b]. |
| 2 | a | double | Distribution location parameter, real value, smaller than parameter b. |
| 3 | b | double | Distribution scale parameter, real value, greater than parameter a. |
| 4 | c | double | Distribution shape parameter, real value on closed interval [a,b]. |
| 5 | Res | TDenseMtxVec * | After calculation stores the CDF calculated from X, a, b and c. 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