# calcBasisIntegrals: Utility function that calculates matrix of basis-scalar... In MFPCA: Multivariate Functional Principal Component Analysis for Data Observed on Different Dimensional Domains

## Description

If the element X^{(j)} is expanded in basis functions b_i(t), 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

 1 calcBasisIntegrals(basisFunctions, dimSupp, argvals) 

## 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.

## Value

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

## Warning

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

MFPCA, dimSupp