integrate_pdf.ecd: Integrate a function with PDF of the distribution

Description Usage Arguments Value Author(s) Examples

Description

Integrate a function with PDF of the distribution. The integration is seperated into three segments to ensure convergence.

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'ecd'
integrate_pdf(object, f, lower, upper, ..., show.warning = TRUE,
  verbose = FALSE)

integrate_pdf(object, f, lower, upper, ...)

## S4 method for signature 'ecd'
integrate_pdf(object, f, lower, upper, ...,
  show.warning = TRUE, verbose = FALSE)

Arguments

object

An object of ecd class

f

An R function taking a numeric first argument and returning a numeric vector of the same length. Returning a non-finite element will generate an error.

lower

Numeric, the lower limit of integration. Can be infinite.

upper

Numeric, the upper limit of integration. Can be infinite.

...

Addtional arguments for f.

show.warning

logical, display warning messages.

verbose

logical, display timing information, for debugging purpose.

Value

A list of class "integrate".

Author(s)

Stephen H. Lihn

Examples

1
2
d <- ecd()
integrate_pdf(d, function(x){x^2}, -Inf, Inf)


Search within the ecd package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.