Method for obtaining the variance of univariate_dist object.

# S3 method for class 'univariate_dist'
vcov(object, ...)

Arguments

object

The distribution object.

...

Additional arguments to pass into expectation.

Value

Numeric scalar; the variance of the distribution.

Examples

vcov(normal(0, 4))    # 4
#> [1] 4
vcov(exponential(2))  # 0.25
#> [1] 0.25