spectrochempy.lorentzianmodel

class lorentzianmodel[source]

A standard Lorentzian function (also known as the Cauchy distribution).

\[f(x) = \frac{ampl * \lambda}{\pi [(x-pos)^2+ \lambda^2]}\]

where \(\lambda = \frac{width}{2}\).

Attributes

lorentzianmodel.args

lorentzianmodel.script

lorentzianmodel.type

args = ['ampl', 'pos', 'width']
script = '\n    MODEL: line%(id)d\nshape: lorentzianmodel\n    $ ampl: %(ampl).3f, 0.0, None\n    $ width: %(width).3f, 0.0, None\n    $ pos: %(pos).3f, %(poslb).3f, %(poshb).3f\n    '
type = '1D'