Skip to contents

F(x) = 1 - exp(-((x - loc)/scale)^shape), x > loc. Density, distribution function, quantile and draws by inversion of the morie Philox uniforms (identical in the Python arm).

Usage

Weibull3(x = NULL, shape = NULL, scale = 1, loc = 0, p = NULL, n = 0, seed = 0)

Arguments

x

Evaluation points.

shape

Parameter (required).

scale

Parameter.

loc

Parameter.

p

Probabilities for the quantile function.

n

Number of random draws.

seed

Philox seed.

Value

list(pdf, logpdf, cdf, quantile, random).

References

Weibull, W. (1951). A statistical distribution function of wide applicability. J. Appl. Mech. 18, 293-297.

Examples

Weibull3(0.5, shape = 2)$cdf
#> [1] 0.2211992