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

efFourier

Calculate the first M Fourier basis functions


Description

This function calculates the first M orthonormal Fourier basis functions on an arbitrary interval.

Usage

efFourier(argvals, M, linear = FALSE)

Arguments

argvals

A vector, defining a (fine) grid on the interval for which the Fourier basis functions are computed.

M

An integer, specifying the number of basis functions that are calculated.

linear

Logical. If TRUE, the last function is not a Fourier function but the linear function orthogonalized to all previous Fourier basis functions. Defaults to FALSE. See Details.

Details

If linear, the last basis function does not belong to the Fourier basis, but is the linear function orthogonalized to all previous Fourier basis functions via the Gram-Schmidt method. This is implemented only if argvalss is a grid defining the unit interval [0,1].

Value

A univariate functional data object of class funData containing the Fourier basis functions on the given interval.

See Also


funData

An S4 Class for Functional Data

v1.3-5
GPL-2
Authors
Clara Happ-Kurz [aut, cre]
Initial release
2020-04-23

We don't support your browser anymore

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