Method for obtaining the mean of an edist object.

# S3 method for class 'edist'
mean(x, n = 10000, ...)

Arguments

x

The edist object to retrieve the mean from

n

The number of samples to take (default: 10000)

...

Additional arguments to pass (not used)

Value

The mean of the edist object

Examples

# \donttest{
set.seed(1)
z <- normal(0, 1) * exponential(2)
mean(z)
#> [1] 0.002089878
# }