expectation.univariate_dist: Method for obtaining the expectation of 'f' with respect to a...

View source: R/univariate_dist.R

expectation.univariate_distR Documentation

Method for obtaining the expectation of f with respect to a univariate_dist object x.

Description

Assumes the support is a contiguous interval that has operations for retrieving the lower and upper bounds.

Usage

## S3 method for class 'univariate_dist'
expectation(x, g, ..., control = list())

Arguments

x

The distribution object.

g

The function to take the expectation of.

...

Additional arguments to pass into g.

control

An (optional) list of control parameters for integrate or expectation_data (if x is not continuous)


queelius/algebraic.dist documentation built on Jan. 27, 2025, 8:46 a.m.