voigt_approx_nobg
- mcalf.profiles.voigt.voigt_approx_nobg(x, a, b, s, g)[source]
Voigt function (efficient approximation) with no background (Base approx. Voigt function).
This is the base for all other approximated Voigt functions. Not implemented in any models yet as initial tests exhibited slow convergence.
- Parameters
x (numpy.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).
- Returns
result – The value of the Voigt function here.
- Return type
numpy.ndarray, shape=`x.shape`
See also
voigt_approx
Approximated Voigt function with background added.
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.
Notes
This algorithm is taken from A. B. McLean et al. 1.
References
- 1
A. B. McLean, C. E. J. Mitchell and D. M. Swanston, “Implementation of an efficient analytical approximation to the Voigt function for photoemission lineshape analysis,” Journal of Electron Spectroscopy and Related Phenomena, vol. 69, pp. 125-132, 1994. https://doi.org/10.1016/0368-2048(94)02189-7