if (λ < 0 || k < 0) { return undefined; }
var dfs = {
mean: λ * mctad.Γ(1 + 1 / k),
median: λ * Math.pow(Math.log(2), 1 / k),
mode: function () {
if (k >= 1) {
return λ * Math.pow((k - 1) / k, 1 / k);
} else {
return 0.0;
}
}(),
variance: Math.pow(λ, 2) * ( mctad.Γ(1 + 2 / k) - Math.pow(mctad.Γ(1 + 1 / k), 2)),
skewness: undefined, // @todo circle back for this
entropy: undefined, // @todo circle back for this
domain: { min: 0, max: Infinity },
range: { min: 0, max: Infinity },
Weibull Distribution
The Weibull Distribution
Assumptions
λ
andk
are strictly positive real numbers;λ
may be thought of as a scale parameter,k
as a shape parameter.Use
mctad.weibull(λ, k)
Inline Comments