用python拟合曲线 [英] curve fitting with python
本文介绍了用python拟合曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试容纳一些数据和东西,我知道有一个简单的命令可以使用python/numpy/matplotlib来做到这一点,但是我找不到它.我认为是
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
popt,popc = numpy.curvefit(f,x)
其中,popt
是f
的参数,popc
是拟合质量,f
是f的预定义函数.你们中有人知道吗?
where popt
is the paramters of f
, popc
is the fit quality and f
is a predefined function of f. Does any of you know it?
推荐答案
查看全文