Skip to contents

A Weibull distribution as a <dist_spec>, given either by its shape/scale or by its mean/sd.

Usage

Weibull(shape, scale, mean, sd, ...)

Arguments

shape, scale

shape and scale parameters, the latter defaulting to 1.

mean, sd

Mean and standard deviation of the distribution, as an alternative to shape/scale.

...

Limits of the distribution, passed to bound_dist().

Value

A <dist_spec>.

See also

Distributions for an overview and the other distributions.

Examples

Weibull(shape = 1, scale = 1)
#> - weibull distribution:
#>   shape:
#>     1
#>   scale:
#>     1
Weibull(shape = 1, scale = 1, max = 10)
#> - weibull distribution (max: 10):
#>   shape:
#>     1
#>   scale:
#>     1
Weibull(mean = 4, sd = 1)
#> - weibull distribution:
#>   shape:
#>     4.5
#>   scale:
#>     4.4