CreateBasis: Create an orthogonal basis of K functions in [0, 1], with...

Description Usage Arguments Value Examples

View source: R/CreateBasis.R

Description

Create an orthogonal basis of K functions in [0, 1], with nGrid points.

Usage

1
2
3
4
5
CreateBasis(
  K,
  pts = seq(0, 1, length.out = 50),
  type = c("cos", "sin", "fourier", "legendre01", "poly")
)

Arguments

K

A positive integer specifying the number of eigenfunctions to generate.

pts

A vector specifying the time points to evaluate the basis functions.

type

A string for the type of orthogonal basis.

Value

A K by nGrid matrix, each column containing an basis function.

Examples

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

fdapace documentation built on May 24, 2021, 9:06 a.m.