Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.gaussianmodel

class gaussianmodel[source]

Normalized 1D gaussian function.

\[f(x) = \frac{ampl}{\sqrt{2 \pi \sigma^2} } \exp({\frac{-(x-pos)^2}{2 \sigma^2}})\]

where \(\sigma = \frac{width}{2.3548}\) .

Attributes Summary

args

script

type

Attributes Documentation

args = ['ampl', 'pos', 'width']
script = '\n    MODEL: line%(id)d\nshape: gaussianmodel\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'

Examples using spectrochempy.gaussianmodel