dgp.fiid: Data Generating Process - Independent Process

Description Usage Arguments Details Value See Also Examples

View source: R/dgp.R

Description

dgp.fiid function generates iid functional curve data following the Ornstein–Uhlenbeck process.

Usage

1
dgp.fiid(grid_point, N)

Arguments

grid_point

The number of grid point in each curve observation.

N

The sample size.

Details

x_i(t)=e^{-t/2}W_i(e^t), t \in [0,1],
where W_i(t) is a standard Brownian Motion.

Value

A (grid_point) x (number of observations) matrix for iid sequences, where the finite realization of curves are stored in columns.

See Also

dgp.fgarch

Examples

1
2
3
4
5
# generate discrete evaluations of 100 iid curves that each curve is realized on 50 grid points.
yd_iid = dgp.fiid(50, 100)

# smooth discrete data into functional curves.
fd = fda::Data2fd(argvals=seq(0,1,len = 50),y=yd_iid,fda::create.bspline.basis(nbasis = 32))

yzhao7322/CurVol documentation built on Sept. 5, 2021, 8:41 p.m.