fitting.gaussians_parabola

fitting.gaussians_parabola(x, a, b, c, *p)

Sum over a variable number of Gaussians on a quadratic background.

Parameters:
  • x (array) – x-values.
  • a (float) – Offset.
  • b (float) – Linear term.
  • c (float) – Quadratic term.
  • 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) + a + b x + c x^2.

See also

gaussians() for details.