-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfd2list.Rd
42 lines (40 loc) · 1.19 KB
/
fd2list.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\name{fd2list}
\alias{fd2list}
\title{
Convert a univariate functional data object to a list
}
\description{
Convert a univariate functional data object to a list for input to
\code{\link{Lfd}}.
}
\usage{
fd2list(fdobj)
}
\arguments{
\item{fdobj}{
a univariate functional data object.
}
}
\value{
a list as required for the second argument of \code{\link{Lfd}}.
}
\references{
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009),
\emph{Functional data analysis with R and Matlab}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005),
\emph{Functional Data Analysis, 2nd ed.}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002),
\emph{Applied Functional Data Analysis}, Springer, New York.
}
\seealso{
\code{\link{Lfd}}
}
\examples{
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
}
% docclass is function
\keyword{smooth}