fdParcheck: Convert 'fd' or 'basisfd' Objects to 'fdPar' Objects

View source: R/fdParcheck.R

fdParcheckR Documentation

Convert fd or basisfd Objects to fdPar Objects

Description

If the input is an fd object, default fdPar parameters are added to convert the object to an fdPar object. If a basisfd object, it is first converted to an fd object with a nbasis by ncurve coefficient matrix of zeros, and then converted to a fdPar object.

Usage

fdParcheck(fdParobj, ncurve=NULL)

Arguments

fdParobj

A basisfd, fd or a fdPar object.

ncurve

The number of curves or functions for which the basis object is to be used in their representation. If missing, an error message is displayed and computation terminated.

Details

The previous version of this function did not include the argument ncurve, and set up an fd object with a square matrix of zeros. This could cause an error in many of the functions that called it.

Value

Returns a fdPar object.

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.


fda documentation built on Sept. 30, 2024, 9:19 a.m.