View source: R/generate_data.R
generate_data | R Documentation |
A general wrapper function to allow generation of functional data according
to several approaches: bbridge
, bmotion
, kl
, ou
,
and far1
.
generate_data(fparam, data_details, burnin = 100)
fparam |
fparam of data (or resolution that will be equally spaced on [0,1]). |
data_details |
List of named lists indicating parameters for each data group. Each process can use different parameters, given below.
|
burnin |
Numeric for amount of burnin for data. Only used for the first groups. Subsequent groups begin at the end of the last group. |
A dfts object for the generated data.
generate_brownian_bridge()
, generate_brownian_motion()
,
generate_far1()
, generate_karhunen_loeve()
,
generate_ornstein_uhlenbeck()
result <- generate_data(
fparam = 15,
data_details = list(
"bmotion" = list("N" = 100, "sd" = 1),
"bbridge" = list("N" = 100, "sd" = 1),
"bbridge" = list("N" = 100, "sd" = 1),
"kl" = list(
"N" = 100,
"distribution" = "Normal",
"eigenvalues" = 1 / 1:4,
"mean" = 0, "dependence" = 0,
"basis" = fda::create.bspline.basis(),
"sd" = 1
),
"ou" = list("N" = 100, "dependence" = 0),
"far1" = list(
"N" = 100, "dependence" = 0,
"sd" = 1, "vary" = FALSE
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.