Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

quadrature

computes the approximated Integral


Description

quadrature computes the integral for a given function based on an NIGrid-object

Usage

quadrature(f, grid = NULL, ...)

Arguments

f

a function which takes the x-values as a (n x d) matrix as a first argument

grid

a grid of type NIGrid

...

further arguments for the function f

Value

The approximated value of the integral

See Also

Examples

myGrid <- createNIGrid(dim=2, type="GLe", level=5)
rescale(myGrid, domain=rbind(c(-1,1),c(-1,1)))
plot(myGrid, col="blue")
myFun <- function(x){
   1 - x[,1]^2 * x[,2]^2
}
quadrature(myFun, myGrid)

mvQuad

Methods for Multivariate Quadrature

v1.0-6
GPL-3
Authors
Constantin Weiser (HHU of Duesseldorf / Germany)
Initial release
2016-07-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.