sumbasis: Kernel entries in infinite dimensional case

Description Usage Arguments Value References Examples

View source: R/sumbasis.R

Description

Function to calculate each entry of the kernel matrix in the infinite dimensional example described in Section 7.4 of \insertCiteBKS2020USP. Here, a random function is converted to a sequence of coefficients and we use the Fourier basis on these coefficients. This function is only used in the function InfKern.

Usage

1
sumbasis(Ntrunc, M, x1, x2)

Arguments

Ntrunc

The total number of coefficients to look at.

M

The maximum frequency to look at in the Fourier basis.

x1

The coefficients of the first data point.

x2

The coefficients of the second data point.

Value

The entry of the kernel corresponding to the two data points.

References

\insertRef

BKS2020USP

Examples

1
x1=runif(5); x2=runif(5); sumbasis(5,2,x1,x2)

USP documentation built on Jan. 27, 2021, 5:08 p.m.

Related to sumbasis in USP...