fd2list: Convert a univariate functional data object to s list

Description Usage Arguments Value See Also Examples

View source: R/fd2list.R

Description

Convert a univariate functional data object to a list for input to Lfd.

Usage

1
fd2list(fdobj)

Arguments

fdobj

a univariate functional data object.

Value

a list as required for the second argument of Lfd.

See Also

Lfd

Examples

1
2
3
4
5
Lbasis  = create.constant.basis(c(0,365));  #  create a constant basis
Lcoef   = matrix(c(0,(2*pi/365)^2,0),1,3)   #  set up three coefficients
wfdobj  = fd(Lcoef,Lbasis)      # define an FD object for weight functions
wfdlist = fd2list(wfdobj)       # convert the FD object to a cell object
harmaccelLfd = Lfd(3, wfdlist)  #  define the operator object

fda documentation built on May 30, 2017, 2:01 a.m.

Search within the fda package
Search all R packages, documentation and source code