Learn R Programming

ctmva (version 1.6.0)

meanbasis: Compute means of basis functions

Description

Given a basis object as defined in the fda package (see basisfd), this function simply computes the vector of means of the basis functions. Used internally.

Usage

meanbasis(basis, rng = NULL)

Value

Vector of means of the basis functions

Arguments

basis

a basis object of class "basisfd"

rng

time range. By default, the entire interval spanned by the basis. Must be left NULL for Fourier bases.

Author

Biplab Paul <paul.biplab497@gmail.com> and Philip Tzvi Reiss <reiss@stat.haifa.ac.il>

Examples

Run this code


require(fda)
bbasis6 <- create.bspline.basis(nbasis=6)
meanbasis(bbasis6)
meanbasis(bbasis6, c(.3,.6))
fbasis11 <- create.fourier.basis(nbasis=11)
meanbasis(fbasis11)

Run the code above in your browser using DataLab