Fitting an exponential modified gaussian curve to data with Python

随声附和 提交于 2019-12-03 20:43:16

The exponentially modified Gaussian is defined to be a skewed distribution to the left and as such, the shape parameter does not change the direction of this skew.

This is what I have tried.

    data.reverse()
    popt,pcov=(curve_fit(fit_func, n.linspace(0,1,100), data))
    fitted_curve=list(fit_func(n.linspace(0,1,100),popt[0],popt[1],popt[2]))
    data.reverse()
    fitted_curve.reverse()

Plot of the data and the fitted curve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!