Learn R Programming

MFPCA (version 1.3-10)

calcBasisIntegrals: Utility function that calculates matrix of basis-scalar products (one dimension)

Description

If the element \(X^{(j)}\) is expanded in basis functions \(b_i^{(j)}(t),~ i = 1, \ldots, K_j\), this function calculates the \(K_j \times K_j\) matrix \(B^{(jj)}\) with entries $$B^{(jj)}_{mn} = \int_{\mathcal{T_j}} b_m^{(j)}(t) b_n^{(j)}(t) \mathrm{d} t$$.

Usage

calcBasisIntegrals(basisFunctions, dimSupp, argvals)

Value

A matrix containing the scalar product of all combinations of basis functions (matrix \(B^{(j)}\))

Arguments

basisFunctions

Array of npc basis functions of dimensions npc x M1 or npc x M1 x M2.

dimSupp

dimension of the support of the basis functions (1 or 2)

argvals

List of corresponding x-values.

Warning

This function is implemented only for functions on one- or two-dimensional domains.

See Also

MFPCA, dimSupp