phys2cvr.regressors.create_legendre

phys2cvr.regressors.create_legendre(degree, length)[source]

Produce the Legendre polynomials of order degree.

Parameters:
degreeint

Highest number of desired orders.

lengthint

Length of the desired polynomials (number of samples).

Returns:
legendrenp.ndarray

A degree`*`length array which includes all the polynomials up to order degree.