Method to obtain the mean of an exponential object.

# S3 method for class 'exponential'
mean(x, ...)

Arguments

x

The exponential object to obtain the mean of

...

Additional arguments (not used)

Value

The mean of the exponential distribution (1 / rate).

Examples

x <- exponential(rate = 0.5)
mean(x)
#> [1] 2