voigt_mclean
- mcalf.profiles.voigt.voigt_mclean(x, s, g, **kwargs)[source]
Voigt function implementation (efficient approximation).
Not implemented in any models yet as initial tests exhibited slow convergence.
- Parameters:
x (numpy.ndarray) – Wavelengths to evaluate Voigt function at.
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`
Notes
This algorithm is taken from A. B. McLean et al. [1].
References