rraman.applyInhomogeneousBroadening¶
-
rraman.
applyInhomogeneousBroadening
(wn, y, sig, alpha=1)¶ Convolute a spectrum with a Gaussian/Lorentzian to account for inhomogeneous broadening.
Parameters: - wn (array) – Frequency axis in same units as sig (cm-1).
- y (array) – Input spectrum, same shape as wn.
- sig (float) – Width of convolution function in same units as x (standard deviation of Gaussian distribution). Must not be zero.
- alpha (float) –
Lineshape parameter:
- 1 = Gaussian,
- 0 = Lorentzian.
Returns: Convoluted spectrum (same shape as y).