univariate_dist object x.R/univariate_dist.R
mean.univariate_dist.RdMethod for obtaining the mean of univariate_dist object x.
# S3 method for class 'univariate_dist'
mean(x, ...)Numeric scalar; the mean of the distribution.
mean(normal(5, 2)) # 5
#> [1] 5
mean(exponential(2)) # 0.5
#> [1] 0.5