evaluate.basis: Evaluate orthonormal basis functions on a grid

Description Usage Arguments Value Examples

View source: R/basis.R

Description

Evaluate orthonormal basis functions on a grid

Usage

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

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

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