qtt icon indicating copy to clipboard operation
qtt copied to clipboard

fit_double_gaussian fails in input data

Open peendebak opened this issue 6 years ago • 0 comments

The fit_double_gaussian can fail with an error message reporting nan values. A minimal example:

import numpy as np
import qtt

xx=np.arange(10.)
yy=0*np.arange(10)
yy[3]=80.
yy[6]=.1

qtt.algorithms.fitting.fit_double_gaussian(xx, yy)

Notes

A solution might be to redefine the gaussian used in the model to fit a exp(-alpha x+b) instead of a exp(x/sigma + b)

peendebak avatar Feb 24 '20 15:02 peendebak