construct.P: Construct the change of basis matrix from multivariate...

Description Usage Arguments Value

View source: R/fit_SSM.R

Description

Let f(x) be the vector of monomials implied by the matrix basis. Let P be the matrix generated by Legendre_P. Then g(x)=P^Tf(x) is the vector of Legendre polynomials with leading terms corresponding to basis.

Usage

1
construct.P(basis)

Arguments

basis

A matrix. Rows are taken as the degree of the associated monomial.

Value

A matrix which functions as a change of basis from monomials to Legendre.


SSM documentation built on May 1, 2019, 10:09 p.m.