原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.legendre.legvander.html
校对:(虚位以待)
numpy.polynomial.legendre.legvander(x, deg)[source]给定程度的伪Vandermonde矩阵。
返回度为deg和采样点x的伪Vandermonde矩阵。伪Vandermonde矩阵定义为
其中0 。V的前导索引x的元素,最后一个索引是Legendre多项式的度。
如果c是长度n + 1和V的系数的1-D数字组是数组t4> = legvander(x, n),然后t9> c)和legval(x, c)这种等价性对于最小二乘拟合和用于评估相同程度和样本点的大量Legendre系列都是有用的。
| 参数: | x:array_like
deg:int
|
|---|---|
| 返回: | vander:ndarray
|