Learn R Programming

distr6 (version 1.5.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, cubature = FALSE, ...)

Arguments

object

Distribution.

trafo

transformation for expectation calculation, see details.

cubature

If TRUE uses cubature::cubintegrate for approximation, otherwise integrate.

Value

The given expectation as a numeric, otherwise NULL.