Creates an S3 object representing a Weibull distribution with the given shape and scale parameters. The Weibull PDF is f(t)=(shape/scale)(t/scale)shape1exp((t/scale)shape)

for t>0.

weibull_dist(shape, scale)

Arguments

shape

Positive scalar shape parameter.

scale

Positive scalar scale parameter.

Value

A weibull_dist object with classes c("weibull_dist", "univariate_dist", "continuous_dist", "dist").

Examples

x <- weibull_dist(shape = 2, scale = 3)
mean(x)
#> [1] 2.658681
vcov(x)
#> [1] 1.931417
format(x)
#> [1] "Weibull distribution (shape = 2, scale = 3)"