voigt_thy¶
- TRXASprefitpack.mathfun.voigt_thy(e: ndarray, thy_peak: ndarray, fwhm_G: float, fwhm_L: float, peak_factor: Union[float, ndarray], policy: Optional[str] = 'shift') ndarray[source]¶
Calculates normalized voigt broadened theoretically calculated lineshape spectrum
- Parameters
e – energy
thy_peak – theoretical calculated peak position and intensity
fwhm_G – full width at half maximum of gaussian shape
fwhm_L – full width at half maximum of lorenzian shape
peak_factor – Peak factor, its behavior depends on policy.
policy ({'shift', 'scale', 'both'}) –
Policy to match discrepency between experimental data and theoretical spectrum.
’shift’ : Default option, shift peak position by peak_factor
’scale’ : scale peak position by peak_factor
’both’ : both shift and scale peak postition.
peak_factor should be equal to the pair of shift_factor and scale_factor.
- Returns
normalized voigt broadened theoritical lineshape spectrum