qudi.util.fit_models.lorentzian.multiple_lorentzian
- qudi.util.fit_models.lorentzian.multiple_lorentzian(x, centers, sigmas, amplitudes)[source]
Mathematical definition of the sum of multiple (physical) Lorentzian functions without any bias.
WARNING: Iterable parameters “centers”, “sigmas”, and “amplitudes” must have the same length.
- Parameters:
- xfloat
The independent variable to calculate lorentz(x).
- centersiterable
Iterable containing center positions for all Lorentzians.
- sigmasiterable
Iterable containing width parameters (half-width at half-maximum) for all Lorentzians.
- amplitudesiterable
Iterable containing amplitudes for all Lorentzians.
- Returns:
- float
The result given x for lorentz(x).