n_gaussian

gaussfitter.n_gaussian(pars=None, a=None, dx=None, sigma=None)[source] [edit on github]

Returns a function that sums over N gaussians, where N is the length of a,dx,sigma OR N = len(pars) / 3

The background “height” is assumed to be zero (you must “baseline” your spectrum before fitting)

pars - a list with len(pars) = 3n, assuming a,dx,sigma repeated dx - offset (velocity center) values sigma - line widths a - amplitudes