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.


fda documentation built on May 31, 2023, 9:19 p.m.