The OpenD Programming Language

weibullCDF

Computes the Weibull cumulative distribution function (CDF).

@safe pure nothrow @nogc
T
weibullCDF
(
T
)
(
const T x
,
const T shape
,
const T scale = 1
)
if (
isFloatingPoint!T
)

Parameters

x T

value to evaluate CDF

shape T

shape parameter

scale T

scale parameter

Examples

import mir.test: shouldApprox;

0.0.weibullCDF(3.0).shouldApprox == 0;
0.5.weibullCDF(3.0).shouldApprox == 0.1175031;
1.0.weibullCDF(3.0).shouldApprox == 0.6321206;
1.5.weibullCDF(3.0).shouldApprox == 0.9657819;

// Can also provide scale parameter
0.5.weibullCDF(2.0, 3.0).shouldApprox == 0.02739552;
1.0.weibullCDF(2.0, 3.0).shouldApprox == 0.1051607;
1.5.weibullCDF(2.0, 3.0).shouldApprox == 0.2211992;

See Also

Meta