R/zerobasis.R

Defines functions zerobasis

zerobasis = function(k) {
#  sets up a k by k-1 matrix with orthonormal columns
#  using the first k non-constant fourier basis function
#  values at 0.5, ..., k-0.5
fourierbasis = create.fourier.basis(k,k);
tk           = 0:(k-1) + 0.5
fbasmat      = eval.basis(tk, fourierbasis)
zerobasmat   = fbasmat[,2:k]
return(zerobasmat)
}

Try the fda package in your browser

Any scripts or data that you put into this service are public.

fda documentation built on May 2, 2019, 5:12 p.m.