The OpenD Programming Language

weibullCCDF

Computes the Weibull complementary cumulative distribution function (CCDF).

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

Parameters

x T

value to evaluate CCDF

shape T

shape parameter

scale T

scale parameter

Examples

import mir.test: shouldApprox;

0.0.weibullCCDF(3.0).shouldApprox == 1;
0.5.weibullCCDF(3.0).shouldApprox == 0.8824969;
1.0.weibullCCDF(3.0).shouldApprox == 0.3678794;
1.5.weibullCCDF(3.0).shouldApprox == 0.03421812;

// Can also provide scale parameter
0.5.weibullCCDF(2.0, 3.0).shouldApprox == 0.9726045;
1.0.weibullCCDF(2.0, 3.0).shouldApprox == 0.8948393;
1.5.weibullCCDF(2.0, 3.0).shouldApprox == 0.7788008;

See Also

Meta