qudi.util.fit_models.gaussian.multiple_gaussian

qudi.util.fit_models.gaussian.multiple_gaussian(x, centers, sigmas, amplitudes)[source]

Mathematical definition of the sum of multiple Gaussian functions without any bias.

WARNING: Iterable parameters “centers”, “sigmas”, and “amplitudes” must have the same length.

Parameters:
xfloat

The independent variable to calculate gauss(x).

centersiterable

Iterable containing center positions for all Gaussians.

sigmasiterable

Iterable containing standard deviations (sigmas) for all Gaussians.

amplitudesiterable

Iterable containing amplitudes for all Gaussians.

Returns:
float

The result given x for gauss(x).