R/uniform_dist.R
mean.uniform_dist.Rd
Computes \((min + max) / 2\).
# S3 method for class 'uniform_dist' mean(x, ...)
A uniform_dist object.
uniform_dist
Additional arguments (not used).
The mean of the distribution.
mean(uniform_dist(0, 10)) #> [1] 5