Learn R Programming

synfd (version 0.1.3)

evaluate.basis: Evaluate Orthonormal Basis Functions

Description

Evaluate Orthonormal Basis Functions

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

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

Run this code
# NOT RUN {
basis <- evaluate.basis(3, type='fourier')
head(basis)

# }

Run the code above in your browser using DataLab