deriv.fourier: Evaluate derivatives of Fourier basis functions on a grid

View source: R/basis.R

deriv.fourierR Documentation

Evaluate derivatives of Fourier basis functions on a grid

Description

Evaluate derivatives of Fourier basis functions on a grid

Usage

## S3 method for class 'fourier'
deriv(
  K,
  m = 51,
  domain = c(0, 1),
  grid = seq(domain[1], domain[2], length.out = m),
  r = 2
)

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

r

the order of derivative

Value

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

Examples

basis <- deriv.fourier(K=3, r=2)
head(basis)


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