Python / Scipy - implementing optimize.curve_fit 's sigma into optimize.leastsq

前端 未结 3 724
日久生厌
日久生厌 2021-01-12 21:03

I am fitting data points using a logistic model. As I sometimes have data with a ydata error, I first used curve_fit and its sigma argument to include my individual standard

3条回答
  •  野的像风
    2021-01-12 21:48

    Assuming your data are in arrays x, y with yerr, and the model is f(p, x), just define the error function to be minimized as (y-f(p,x))/yerr.

提交回复
热议问题