Synthesize dense/sparse functional data/snippets
devtools::install_github("linulysses/synfd") or install.packages('synfd')
Y <- irreg.fd(mu=1, X=gaussian.process(), n=10, m=5)
Y <- irreg.fd(mu=cos, X=kl.process(eigen.values=1/(2^(1:25)),eigen.functions='FOURIER',distribution='LAPLACE'),n=10, m=5)
Y <- reg.fd(mu=1, X=gaussian.process(cov=matern), n=10, m=101)