fitting.gaussians

fitting.gaussians(x, *p)

Sum over a variable number of Gaussians without baseline.

Parameters:
  • x (array) – x-values.
  • p (variable) –

    Coefficients for Gaussians. For each Gaussian provide

    • A amplitude,
    • x0 center,
    • dx FWHM.
Returns:

Sum over Gaussians f(x) = \sum_i G_i(x).

See also

gauss() for the mathematical formulation.