Learn R Programming

distr6 (version 1.4.2)

genExp: Generalised Expectation of a Distribution

Description

A generalised expectation function for distributions, for arithmetic mean and more complex numeric calculations.

Usage

genExp(object, trafo = NULL)

Arguments

object

Distribution.

trafo

transformation for expectation calculation, see details.

Value

The given expectation as a numeric, otherwise NULL.