powered by
Evaluate Orthonormal Basis Functions
evaluate.basis( K, m = 51, domain = c(0, 1), grid = seq(domain[1], domain[2], length.out = m), type = c("FOURIER", "COS", "SIN", "LEGENDRE") )
positive integer specifying the number of basis functions to be included
number of equispaced points on domain.
domain
domain on which basis functions are defined.
vector specifying the time points to evaluate the basis functions; if grid is specified, then m is ignored.
grid
m
string for the type of orthogonal basis.
A m by K matrix, where rows index basis functions while columns index points in the grid.
K
# NOT RUN { basis <- evaluate.basis(3, type='fourier') head(basis) # }
Run the code above in your browser using DataLab