fitting exponential decay with no initial guessing

前端 未结 8 915
刺人心
刺人心 2020-12-01 02:31

Does anyone know a scipy/numpy module which will allow to fit exponential decay to data?

Google search returned a few blog posts, for example - http://exnumerus.blo

8条回答
  •  再見小時候
    2020-12-01 02:40

    The right way to do it is to do Prony estimation and use the result as the initial guess for least squares fitting (or some other more robust fitting routine). Prony estimation does not need an initial guess, but it does need many points to yield a good a estimate.

    Here is an overview

    http://www.statsci.org/other/prony.html

    In Octave this is implemented as expfit, so you can write your own routine based on the Octave library function.

    Prony estimation does need the offset to be known, but if you go "far enough" into your decay, you have a reasonable estimate of the offset, so you can just shift the data to place the offset at 0. At any rate, Prony estimation is just a way to get a reasonable initial guess for other fitting routines.

提交回复
热议问题