You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following should give two dispersion spectra (Exp.mwPhase=pi/2), but the one without Lorentzian broadening incorrectly returns the absorption spectrum.
In these cases, the spectrum is constructed using a template lineshape. If only a Gaussian broadening is given, then a Gaussian template is used, but gaussian does not have dispersion implemented for its integral. The Gaussian dispersion function is Dawson's integral, and the integral of that is the generalized hypergeometric function 1/2k^2 2F2(1,1;3/2,2;-k^2), where k = (x-x0)/sig/sqrt(2).
MATLAB's Symbolic Toolbox has hypergeom, which can evaluate this function, Since it uses exact arithmetic, it is very slow but accurate. Other purely numerical approaches (see e.g Julia's HypergeometricFunctions.jl) have challenges in the wings of the lineshape.
A numerical Hilbert transform is possible, but is inaccurate in the wings (shown here with a Lorentzian):
The following should give two dispersion spectra (
Exp.mwPhase=pi/2
), but the one without Lorentzian broadening incorrectly returns the absorption spectrum.The text was updated successfully, but these errors were encountered: