Learn R Programming

fda (version 6.2.0)

vec2Lfd: Make a Linear Differential Operator Object from a Vector

Description

A linear differential operator object of order $m$ is constructed from the number in a vector of length $m$.

Usage

vec2Lfd(bwtvec, rangeval=c(0,1))

Value

a linear differential operator object

Arguments

bwtvec

a vector of coefficients to define the linear differential operator object

rangeval

a vector of length 2 specifying the range over which the operator is defined

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

int2Lfd, Lfd

Examples

Run this code
#  define the harmonic acceleration operator used in the
#  analysis of the daily temperature data
Lcoef <- c(0,(2*pi/365)^2,0)
harmaccelLfd <- vec2Lfd(Lcoef, c(0,365))

hmat <- vec2Lfd(matrix(Lcoef, 1), c(0, 365))

stopifnot(
all.equal(harmaccelLfd, hmat)
)

Run the code above in your browser using DataLab