powered by
A function for making matrices of sinusoidal basis function values.
basis(x, nb)
A matrix whose rows correspond to input values and whose columns correspond to particular basis functions.
The frequencies at which to evaluate the basis functions.
The number of basis functions to include.
Ben Powell
bas.mat<-basis(seq(0,0.5,length=16),22)
Run the code above in your browser using DataLab