且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Python将指数修正的高斯曲线拟合到数据

更新时间:2022-01-22 18:29:39

经过指数修改的高斯定义为左侧的偏斜分布,因此shape参数不会更改该偏斜的方向.

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.

这是我尝试过的.

    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()

数据图和拟合曲线