powered by
univariate_dist
x
Method for obtaining the mean of univariate_dist object x.
# S3 method for univariate_dist mean(x, ...)
Numeric scalar; the mean of the distribution.
The distribution object.
Additional arguments to pass into expectation.
expectation
mean(normal(5, 2)) # 5 mean(exponential(2)) # 0.5
Run the code above in your browser using DataLab