meanbasis {ctmva}R Documentation

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)

Arguments

basis

a basis object of class "basisfd"

Value

Vector of means of the basis functions

Author(s)

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

Examples



require(fda)
fbasis11 <- create.fourier.basis(nbasis=11)
zapsmall(meanbasis(fbasis11))    # the sine functions have mean 0


[Package ctmva version 1.1.0 Index]