Evaluate a Functional Data Object

Evaluate a Functional Data Object

DESCRIPTION:

Evaluate a functional data object at specified argument values, or evaluate a derivative or the result of applying a linear differential operator to the functional object.

USAGE:

eval.fd(evalarg, fd, Lfd=0)

REQUIRED ARGUMENTS:

evalarg
A vector of argument values at which the functional data object is to be evaluated.
fd
A functional data object to be evaluated.

OPTIONAL ARGUMENTS:

Lfd
Either a nonnegative integer or a linear differential operator object. If present, the derivative or the value of applying the operator is evaluated rather than the functions themselves.

VALUE:

Returns an array of 2 or 3 dimensions containing the function values. The first dimension corresponds to the argument values in evalarg, the second to replications, and the third if present to functions.

SEE ALSO:

plot.fd, plotfit.fd, fd2data, eval.bifd

EXAMPLES:

monthtime  <- seq(0.5, 11.5, 1)
tempmat <- t(temps)
#    set up the fourier basis
monthbasisfd <- create.basis.fd("fourier", c(0,12), 13, 12)
    monthrange, monthnbasis, monthbreaks)
#   make temperature fd object
tempfd <- data2fd(tempmat, monthtime,  monthbasisfd)
#   set up the harmonic acceleration operator
Lbasis <- create.basis.fd("const", c(0,1), 1, 0)
Lcoef <- matrix(c(0, (2*pi)^2, 0), 1, 3)
harmaccelLfd <- create.fd(Lcoef, Lbasis)
#   evaluate the value of the harmonic acceleration operator at
#     121 sampling points
Ltempmat <- eval.fd(seq(0,12,len=121), tempfd, Lfd)