Learn R Programming

distr6 (version 1.3.6)

mgf: Moment Generating Function

Description

Moment generating function of a distribution

Usage

mgf(object, t)

Arguments

object

Distribution.

t

integer to evaluate moment generating function at.

Value

Moment generating function evaluated at t as a numeric.

R6 Usage

$mgf(t)

Details

The moment generating function is defined by $$mgf_X(t) = E_X[exp(xt)]$$ where X is the distribution and \(E_X\) is the expectation of the distribution X.

If an analytic expression isn't available, returns error. To impute a numerical expression, use the CoreStatistics decorator.

See Also

CoreStatistics and decorate