Integrate: Stochastic Integration

Description Usage Arguments Value

View source: R/AuxiliaryFunctions.R

Description

Estimates the integral \int K(x) g(x) dx if K is a density function (or kernel function). espilon, alpha are control parameters.

Usage

1
2
Integrate(g, d, type = "Gaussian", eps = 1e-04, alpha = 0.01,
  min = 100, max = Inf)

Arguments

g

A function we want to integrate. Takes a vector as input and returns a vector.

d

Dimension of the input argument of g.

type

the used kernel

eps

eps is the we allow our estimator to vary compared to the true value with certainty 1 - alpha.

alpha

alpha is the certainty with which our estimator is in a certained interval around the true value.

min

The minimal number of simulations.

max

The maximal number of simulations.

Value

An vector estimating the integral.


Epsilon127/ldder documentation built on March 7, 2020, 7:47 a.m.