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

Description Usage Arguments Value Examples

View source: R/basis.R

Description

Evaluate derivatives of Fourier basis functions on a grid

Usage

1
2
3
4
5
6
7
8
## 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

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

linulysses/mcfda documentation built on Jan. 17, 2021, 8:53 a.m.