deriv_voigt

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

deriv_voigt: derivative of voigt profile with respect to (e, fwhm_G, fwhm_L)

Parameters
  • e – energy

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

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

Returns

first derivative of voigt profile

Note

  • 1st column: df/de

  • 2nd column: df/d(fwhm_G)

  • 3rd column: df/d(fwhm_L)

if fwhm_G is (<1e-8) then,

  • 1st column: dl/de

  • 2nd column: 0

  • 3rd column: dL/d(fwhm_L)

L means normalized lorenzian shape with full width at half maximum parameter: fwhm_L

if fwhm_L is (<1e-8) it returns

  • 1st column: dg/de

  • 2nd column: dg/d(fwhm_G)

  • 3rd column: 0

g means normalized gaussian shape with full width at half maximum parameter: fwhm_G