从
lowess文档中:
Definition: lowess(endog, exog, frac=0.6666666666666666, it=3, delta=0.0, is_sorted=False, missing='drop', return_sorted=True)[...]Parameters----------endog: 1-D numpy array The y-values of the observed pointsexog: 1-D numpy array The x-values of the observed points
它以其他顺序接受参数。它还不仅返回
y:
>>> lowess(y, x)array([[ 0.00000000e+00, 1.13752478e+00], [ 1.00000000e-02, 1.14087128e+00], [ 2.00000000e-02, 1.14421582e+00], ..., [ 9.97000000e+00, -5.17702654e-04], [ 9.98000000e+00, -5.94304755e-03], [ 9.99000000e+00, -1.13692896e-02]])
但是如果你打电话
ys = lowess(y, x)[:,1]
你应该看到类似
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)