我知道在random模块中使用python构建的许多概率函数.
我想知道,如果给出浮标列表,是否有可能找到最适合列表的分布方程式?
我不知道numpy是否会这样做,但是这个函数可以与Excel的"趋势"函数进行比较(不相等,但相似).
我该怎么办?
joa*_*uin 10
numpy.polyfit(x, y, deg, rcond=None, full=False)¶
Least squares polynomial fit.
Fit a polynomial p(x) = p[0] * x**deg + ... + p[deg] of degree deg to points (x, y).
Returns a vector of coefficients p that minimises the squared error.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12723 次 |
| 最近记录: |