Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

create.constant.basis

Create a Constant Basis


Description

Create a constant basis object, defining a single basis function whose value is everywhere 1.0.

Usage

create.constant.basis(rangeval=c(0, 1), names="const", axes=NULL)

Arguments

rangeval

a vector of length 2 containing the initial and final values of argument t defining the interval over which the functional data object can be evaluated. However, this is seldom used since the value of the basis function does not depend on the range or any argument values.

names

a character vector of length 1.

axes

an optional list used by selected plot functions to create custom axes. If this axes argument is not NULL, functions plot.basisfd, plot.fd, plot.fdSmooth plotfit.fd, plotfit.fdSmooth, and plot.Lfd will create axes via x$axes[[1]] and x$axes[-1]. The primary example of this uses list("axesIntervals", ...), e.g., with Fourier bases to create CanadianWeather plots

Value

a basis object with type component const.

See Also

Examples

basisobj <- create.constant.basis(c(-1,1))

fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.