get_leg_matrix: Retrieve Legendre polynomials

Description Usage Arguments Value

View source: R/legendre_utils.R

Description

Retrieves the first 'n' Legendre polynomials, evaluated on 'x' scaled from -1 to 1.

Usage

1

Arguments

n

integer will retrieve the first n polynomials

x

integer vector will evaluate along x scaled to be from -1:1

Value

'x' by 'n' matrix of n polynomials evaluated at 'length(x)' points, without the intercept (0th order polynomial)


diazrenata/scads documentation built on Nov. 4, 2019, 10:30 a.m.