Orthogonal regression fitting in scipy least squares method

后端 未结 3 914
离开以前
离开以前 2021-02-19 16:21

The leastsq method in scipy lib fits a curve to some data. And this method implies that in this data Y values depends on some X argument. And calculates the minimal distance bet

3条回答
  •  无人及你
    2021-02-19 17:01

    I've found the solution. Scipy Odrpack works noramally but it needs a good initial guess for correct results. So I divided the process into two steps.

    First step: find the initial guess by using ordinaty least squares method.

    Second step: substitude these initial guess in ODR as beta0 parameter.

    And it works very well with an acceptable speed.

    Thank you guys, your advice directed me to the right solution

提交回复
热议问题