curve fitting with python

前端 未结 2 1079
-上瘾入骨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: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.

提交回复
热议问题