fourier_basis: Compute Fourier Basis Expansions

View source: R/main_functions.R

fourier_basisR Documentation

Compute Fourier Basis Expansions

Description

fourier_basis computes Fourier Bases expansions for the covariates in z up to a given order.

Usage

fourier_basis(z, order)

Arguments

z

n x p Matrix, each column corresponds to one covariate.

order

The order until which the Fourier expansion shall be computed.

Value

n x (2 x p x order) Matrix, each column contains an expression of the form sin(2pirz,i) or cos(2pirz,i) for r=1,...,order and j=1,...,p. The column names are of the form "FB j sin r" or "FB j cos r".

Authors

Alexander Kreiss, Leipzig University, Germany. alexander.kreiss@math.uni-leipzig.de

Christoph Rothe, University of Mannheim, Germany

See Also

HighDim_rd, interaction_terms, cross_interactions


akreiss/HighDimRD documentation built on Nov. 21, 2023, 9:24 a.m.