fitting.dispgaussians_cubic

fitting.dispgaussians_cubic(x, a, b, c, d, *p)

Sum over a variable number of dispersive Gaussians on a cubic background.

Parameters:
  • x (array) – x-values.
  • a (float) – Offset.
  • b (float) – Linear term.
  • c (float) – Quadratic term.
  • d (float) – Cubic term.
  • p (variable) –

    Coefficients for dispersive Gaussians. For each Gaussian provide

    • A amplitude of real part,
    • B amplitude of dispersive part,
    • x0 center,
    • dx FWHM.
Returns:

Sum over dispersive Gaussians f(x) = \sum_i G_i(x) + a + b x + c x^2 + d x^3.

See also

dispgaussians() for details.