double_voigt(x, a1, b1, s1, g1, a2, b2, s2, g2, d, clib=True)¶
Double Voigt function with background.
x (numpy.ndarray) – Wavelengths to evaluate Voigt function at.
a1 (float) – Amplitude of 1st Voigt function.
b1 (float) – Central line core of 1st Voigt function.
s1 (float) – Sigma (for Gaussian) of 1st Voigt function.
g1 (float) – Gamma (for Lorentzian) of 1st Voigt function.
a2 (float) – Amplitude of 2nd Voigt function.
b2 (float) – Central line core of 2nd Voigt function.
s2 (float) – Sigma (for Gaussian) of 2nd Voigt function.
g2 (float) – Gamma (for Lorentzian) of 2nd Voigt function.
d (float) – Background.
clib (bool, optional, default=True) – Whether to use the complied C library or a slower Python version. If using the C library, the accuracy of the integration is reduced to give the code a significant speed boost. Python version can be used when speed is not a priority. Python version will remove deviations that are sometimes present around the wings due to the reduced accuracy.
result – The value of the Voigt function here.
- Return type
More information on the Voigt function can be found here: https://en.wikipedia.org/wiki/Voigt_profile