package
Version:
v0.0.0-...-2bcc11b
Opens a new window with list of versions in this module.
Published: May 8, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
多项式曲线拟合函数,也就是离散点拟合直线
xs: 横坐标值
ys:纵坐标值
degree:拟合多项式的次数
输出:degree次拟合多项式系数(coefficients),其长度=degree+1,第一个值就是斜率,后面的值是截距误差。若要计算多项式在横坐标上的值,还要继续调用函数PolyVal
Source Files
¶
Directories
¶
Package polyfit models a polynomial y from sample points xs and ys, to minimizes the squared residuals.
|
Package polyfit models a polynomial y from sample points xs and ys, to minimizes the squared residuals. |
Click to show internal directories.
Click to hide internal directories.