evaluate.basis: Evaluate Orthonormal Basis Functions

Description Usage Arguments Value Examples

View source: R/utility.R

Description

Evaluate Orthonormal Basis Functions

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

positive integer specifying the number of basis functions to be included

m

number of equispaced points on domain.

domain

domain on which basis functions are defined.

grid

vector specifying the time points to evaluate the basis functions; if grid is specified, then m is ignored.

type

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)

synfd documentation built on July 1, 2020, 6:04 p.m.