gaussian

Gaussian models

The Gaussian model fits peaks, and is given by

\[y=\sum_{k=1}^na_k\exp{\left[-\left(\frac{x-b_k}{c_k}\right)^2\right]}\]

where \(a\) is the amplitude, \(b\) is the centroid (location), \(c\) is related to the peak width, and \(n\) is the number of peaks to fit.

This module provides the general Gaussian model above for any number of terms \(k\), as well as convenience functions for Gaussian models with \(1\leq n\leq8\) analogous to MATLAB’s gauss1, gauss2, etc.

Functions

gauss

General Gaussian model.

gauss1

Convenience function for the gauss1 model from MATLAB.

gauss2

Convenience function for the gauss2 model from MATLAB:

gauss3

Convenience function for the gauss3 model from MATLAB.

gauss4

Convenience function for the gauss4 model from MATLAB.

gauss5

Convenience function for the gauss5 model from MATLAB.

gauss6

Convenience function for the gauss6 model from MATLAB.

gauss7

Convenience function for the gauss7 model from MATLAB.

gauss8

Convenience function for the gauss8 model from MATLAB.