voigtian#

torchspin.voigtian(x, x0, fwhmGL, diff=0, phase=0.0)[source]#

Area-normalized Voigt lineshape (convolution of Gaussian and Lorentzian).

Parameters:
  • x (array_like) – Abscissa values (must be uniformly spaced for the convolution).

  • x0 (float) – Center of the lineshape.

  • fwhmGL (array_like, length 2) – [fwhm_Gauss, fwhm_Lorentz]. Both ≥ 0; at least one > 0.

  • diff (int, optional) – Derivative order (0, 1, 2, -1). Default 0.

  • phase (float, optional) – Phase rotation in radians. Default 0.

Returns:

  • ya (ndarray) – Absorption (or phase-rotated) Voigt profile.

  • yd (ndarray) – Dispersion Voigt profile.

Return type:

tuple