givenBasis: Use given basis functions for univariate representation

View source: R/univDecomp.R

givenBasisR Documentation

Use given basis functions for univariate representation

Description

Use given basis functions for univariate representation

Usage

givenBasis(funDataObject, functions, scores = NULL, ortho = NULL)

Arguments

funDataObject

An object of class funData containing the observed functional data samples and for which the basis representation is to be calculated. The data is assumed to be demeaned.

functions

A funData object that contains the basis functions.

scores

An optional matrix containing the scores or coefficients of the individual observations and each basis function. If N denotes the number of observations and K denotes the number of basis functions, then scores must be a matrix of dimensions N x K. As the data is assumed to be demeaned, each column must have an average of approximately 0. If not supplied, the scores are calculated as projection of each observation on the basis functions.

ortho

An optional parameter, specifying whether the given basis functions are orthonormal (ortho = TRUE) or not (ortho = FALSE). If not supplied, the basis functions are considered as non-orthonormal and their pairwise scalar product is calculated for later use in the MFPCA.

Value

scores

The coefficient matrix.

B

A matrix containing the scalar product of all pairs of basis functions. This is NULL, if ortho = TRUE.

ortho

Logical, set to TRUE, if basis functions are orthonormal.

functions

A functional data object containing the basis functions.


MFPCA documentation built on Sept. 15, 2022, 9:07 a.m.