prepare_basis: Evaluate basis objects over observation times and quadrature...

View source: R/PCODE.R

prepare_basisR Documentation

Evaluate basis objects over observation times and quadrature points

Description

Calculate all basis functions over observation time points and store them as columns in a single matrix for each dimension. Also include first and second order derivative. Repeat over quadrature points.

Usage

prepare_basis(basis, times, nquadpts)

Arguments

basis

A basis object.

times

The vector contain observation times for corresponding dimension.

nquadpts

Number of quadrature points will be used later for approximating integrals.

Value

Phi.mat

Evaluations of all basis functions stored as columns in the matrix.

Qmat

Evaluations of all basis functions over quadrature points stored as columns in the matrix.

Q.D1mat

Evaluations of first order derivative all basis functions over quadrature points stored as columns in the matrix.

Q.D2mat

Evaluations of second order derivative all basis functions over quadrature points stored as columns in the matrix.

quadts

Quadrature points.

quadwts

Quadrature weights.


pCODE documentation built on Sept. 8, 2022, 9:06 a.m.