evaluate.basis: Evaluate orthonormal basis functions on a grid

View source: R/basis.R

evaluate.basisR Documentation

Evaluate orthonormal basis functions on a grid

Description

Evaluate orthonormal basis functions on a grid

Usage

evaluate.basis(
  K,
  m = 51,
  domain = c(0, 1),
  grid = seq(domain[1], domain[2], length.out = m),
  type = c("FOURIER", "COS", "SIN", "LEGENDRE")
)

Arguments

K

A positive integer specifying the number of eigenfunctions to generate.

m

the number of equispaced points on domain

domain

the domain on which basis functions are defined

grid

A vector specifying the time points to evaluate the basis functions. If grid is supplied, then m is ignored

type

A string for the type of orthogonal basis.

Value

A m by K matrix, where rows index basis functions while columns index points in the grid.

Examples

basis <- evaluate.basis(3, type='fourier')
head(basis)


ZhuolinSong/wpe documentation built on Oct. 31, 2022, 7:38 p.m.