Create a constant basis object, defining a single basis function whose value is everywhere 1.0.
create.constant.basis(rangeval=c(0, 1), names="const", axes=NULL)a basis object with type component const.
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.
a character vector of length 1.
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
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.
basisfd,
create.bspline.basis,
create.exponential.basis,
create.fourier.basis,
create.monomial.basis,
create.polygonal.basis,
create.power.basis
basisobj <- create.constant.basis(c(-1,1))
Run the code above in your browser using DataLab