Learn R Programming

algebraic.dist (version 0.9.1)

mean.empirical_dist: Method for obtaining the mean of empirical_dist object x.

Description

Method for obtaining the mean of empirical_dist object x.

Usage

# S3 method for empirical_dist
mean(x, ...)

Value

Numeric vector of column means.

Arguments

x

The distribution object.

...

Additional arguments to pass (not used).

Examples

Run this code
ed <- empirical_dist(c(1, 2, 3, 4, 5))
mean(ed) # 3

Run the code above in your browser using DataLab