Computes \(\alpha / (\alpha + \beta)\) where \(\alpha\) = shape1 and \(\beta\) = shape2.

# S3 method for class 'beta_dist'
mean(x, ...)

Arguments

x

A beta_dist object.

...

Additional arguments (not used).

Value

The mean of the distribution.

Examples

mean(beta_dist(2, 5))
#> [1] 0.2857143