View source: R/Simulate_Data.R
build_Fourier_basis | R Documentation |
Define a Fourier basis to simulate functional covariate observations.
build_Fourier_basis(grid, dim, per = 2 * pi)
grid |
a numerical vector. |
dim |
a numerical value. It corresponds to |
per |
a numerical value which corresponds to the period of the sine and cosine functions. |
See the sim_x
function.
a matrix. Each row is an functional observation evaluated on the
grid
time points.
# See the function \code{sim_x}.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.