numpy.polynomial.legendre.Legendre

原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.legendre.Legendre.html

译者:飞龙 UsyiyiCN

校对:(虚位以待)

class numpy.polynomial.legendre.Legendre(coef, domain=None, window=None)[source]

Legendre系列类。

Legendre类提供了标准的Python数值方法'+',' - ','*','//','%','divmod','**'和'方法列在ABCPolyBase文档中。

参数:

coef:array_like

Legendre coefficients in order of increasing degree, i.e., (1, 2, 3) gives 1*P_0(x) + 2*P_1(x) + 3*P_2(x).

domain:(2,)array_like,可选

要使用的域。间隔[domain [0], domain [1]]映​​射到间隔 窗口[1]]默认值为[-1,1]。

窗口:(2,)array_like,可选

窗口,请参阅domain以供使用。默认值为[-1,1]。

版本1.6.0中的新功能。

方法

__call__(arg)
basis(deg [,domain,window]) 度数deg的系数基准多项式。
cast(series [,domain,window]) 将系列转换为此类的系列。
convert([domain,kind,window]) 将系列转换为不同的类型和/或域和/或窗口。
copy() 返回副本。
cutdeg(deg) 截断到给定程度的系列。
degree() 系列的程度。
deriv([m]) 区分。
fit(x,y,deg [,domain,rcond,full,w,window]) 最小二乘拟合数据。
fromroots(roots [,domain,window]) 返回具有指定根的序列实例。
has_samecoef(other) 检查系数是否匹配。
has_samedomain(other) 检查域是否匹配。
has_sametype(other) 检查类型是否匹配。
has_samewindow(other) 检查窗口是否匹配。
identity([domain,window]) 身份功能。
integ([m,k,lbnd]) 整合。
linspace([n,domain]) 在域中的等间隔点处返回x,y值。
mapparms() 返回映射参数。
roots() 返回系列多项式的根。
trim([tol]) 删除拖尾系数
truncate(size) 将序列截断到长度大小