我正在尝试寻找与 MATLAB 的“fit”函数相同的 Python 函数。
具体来说,我正在寻找类似于以下 MATLAB 代码的内容:
fi = fit(bins, z, cubicinterp)
其中 z 和 bin 是列表。
最佳答案
尝试 SciPy 的 curve_fit()用于函数的一般拟合。
对于具体的插值,请查看 SciPy 的 interploation functions .
关于python - 适用于 Python 的 MATLAB 'fit' 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17324488/