Method for obtaining the mean of univariate_dist object x.

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

Arguments

x

The distribution object.

...

Additional arguments to pass into expectation.

Value

Numeric scalar; the mean of the distribution.

Examples

mean(normal(5, 2))    # 5
#> [1] 5
mean(exponential(2))  # 0.5
#> [1] 0.5