Computes α/(α+β) where α = shape1 and β = 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