pwtools.num.vander

pwtools.num.vander(points, deg)[source]

N-dim Vandermonde matrix for data points and a polynomial of degree deg.

Parameters:
  • points (see polyfit()) –

  • deg (int) – Degree of the poly (e.g. 3 for cubic).

Returns:

vander

Return type:

2d array (npoints, (deg+1)**ndim)