Learn R Programming

fda (version 1.2.3)

fd: Define a Functional Data Object

Description

This is the constructor function for objects of the fd class. Each function that sets up an object of this class must call this function. This includes functions data2fd, smooth.basis, density.fd, and so forth that estimate functional data objects that smooth or otherwise represent data. Ordinarily, user of the functional data analysis software will not need to call this function directly, but these notes are valuable to understanding what the "slots" or "members" of the fd class are.

Usage

fd(coef=matrix(0, 2, 1), basisobj=basisfd(),
   fdnames=defaultnames)

Arguments

coef
a vector, matrix, or three-dimensional array of coefficients. The first dimension of matrices and arrays, as well as that of a vector, corresponds to basis functions. The second dimension corresponds to the number of functions or curves, or
basisobj
a functional basis object defining the basis
fdnames
A list of length 3, each member being a string vector containing labels for the levels of the corresponding dimension of the discrete data. The first dimension is for argument values, and is given the default name "time", the second is for re

Value

  • a functional data object

source

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

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

Details

To check that an object is of this class, use function is.fd.

Normally only developers of new functional data analysis functions will actually need to use this function, so no examples are provided.