CreateBasis | R Documentation |
Create an orthogonal basis of K functions in [0, 1], with nGrid points.
CreateBasis(
K,
pts = seq(0, 1, length.out = 50),
type = c("cos", "sin", "fourier", "legendre01", "poly")
)
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. |
A K by nGrid matrix, each column containing an basis function.
basis <- CreateBasis(3, type='fourier')
head(basis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.