voigt

TRXASprefitpack.mathfun.voigt(e: Union[float, ndarray], fwhm_G: float, fwhm_L: float) Union[float, ndarray][source]

voigt: evaluates voigt profile function with full width at half maximum of gaussian part is fwhm_G and full width at half maximum of lorenzian part is fwhm_L

Parameters
  • e – energy

  • fwhm_G – full width at half maximum of gaussian part \((2\sqrt{2\log(2)}\sigma)\)

  • fwhm_L – full width at half maximum of lorenzian part \((2\gamma)\)

Returns

voigt profile

Note

  • if fwhm_G is (<1e-8) it returns normalized lorenzian shape

  • if fwhm_L is (<1e-8) it returns normalized gaussian shape