This is development documentation. Some features are not available in the stable release. View stable documentation.

spectrochempy.gaussianmodel

class gaussianmodel[source]

1D Gaussian function.

When normalized is True (default) the function returns a normalized profile whose integral is approximately ampl:

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

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

When normalized is False the peak height is exactly ampl and the normalization factor is omitted.

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