Learn R Programming

algebraic.dist (version 0.1.0)

expectation: Generic method for obtaining the expectation of f with respect to x.

Description

Generic method for obtaining the expectation of f with respect to x.

Usage

expectation(x, g, ...)

Arguments

x

The distribution object.

g

The function to take the expectation of.

...

Additional arguments to pass into g.