curve fitting with python

前端 未结 2 1072
-上瘾入骨i
-上瘾入骨i 2021-01-11 09:45

I\'m trying to fit some data and stuff, I know there is a simple command to do this with python/numpy/matplotlib, but I can\'t find it. I think it is something like

相关标签:
2条回答
  • 2021-01-11 10:07

    Found it. Curve_fit from optimize in scipy

    0 讨论(0)
  • 2021-01-11 10:16

    Take a look at scipy.optimize.curve_fit:

    scipy.optimize.curve_fit(f, xdata, ydata, p0=None, sigma=None, **kw)

    Use non-linear least squares to fit a function, f, to data.

    0 讨论(0)
提交回复
热议问题