Learn R Programming

MultiStatM (version 2.1.0)

IntHermiteN: IntHermiteN

Description

Computes the integrals of d-Hermite polynomial with respect to the normal density $$\int_{-\infty }^{\mathbf{y}}\mathbf{H}_{k-1}\left( \mathbf{s}\right) \varphi \left( \mathbf{s}\right) d \,\mathbf{s}$$ either from \(-\infty\) to \(\mathbf{y}\) (type = "lower") or from \(\mathbf{y}\) to \(+\infty\) ( type = "upper").

Usage

IntHermiteN(x, K, type = c("lower", "upper"))

Value

A list of integrated Hermite polynomials up to order K-1.

Arguments

x

Numeric vector of lenght \(d\)

K

Integer. The order of the Hermite polynomial + 1.

type

Character string specifying the integration range. Must be one of:

  • "lower": integrate from \(-\infty\) to \(x\)

  • "upper": integrate from \(x\) to \(+\infty\)

Examples

Run this code
x <- c(1,2)
IntHermiteN(x, K = 3,type = "lower")

Run the code above in your browser using DataLab