voigt_approx¶
-
mcalf.profiles.
voigt_approx
(x, a, b, s, g, d)[source]¶ Voigt function (efficient approximation) with background
- Parameters
x (ndarray) – Wavelengths to evaluate Voigt function at.
a (float) – Amplitude of the Lorentzian.
b (float) – Central line core.
s (float) – Sigma (for Gaussian).
g (float) – Gamma (for Lorentzian).
d (float) – Background.
- Returns
result – The value of the Voigt function here.
- Return type
ndarray of shape x.shape
See also
voigt_approx_nobg()
Base approximated Voigt function with no background
double_voigt_approx_nobg()
Two approximated Voigt functions added together
double_voigt_approx()
Two approximated Voigt functions and a background added together
voigt_nobg()
Base Voigt function with no background
voigt()
Voigt function with background added
double_voigt_nobg()
Two Voigt functions added together
double_voigt()
Two Voigt function and a background added together