Line shapes and spectral processing#

Line shape functions, convolution and binning, field modulation, noise, baseline correction, smoothing and filtering, and time-domain signal processing.

Line shapes#

gaussian

Area-normalized Gaussian absorption (and dispersion) lineshape.

lorentzian

Area-normalized Lorentzian absorption (and dispersion) lineshape.

voigtian

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

lshape

Combined Gaussian + Lorentzian absorption lineshape.

convspec

Convolve a spectrum with a Gaussian and/or Lorentzian line shape (EasySpin convspec).

makespec

Bin peaks into a stick spectrum.

Spectrum processing#

deriv

Numerical derivative using central differences.

fieldmod

Simulate the effect of field modulation on an absorption EPR spectrum.

addnoise

Add noise to a signal at a specified signal-to-noise ratio.

basecorr

Polynomial baseline correction.

rescaledata

Rescale a data vector.

datasmooth

Smooth a 1D signal using a moving-window filter.

rcfilt

Apply an RC low-pass filter to a signal.

hilberttrans

Compute the analytic signal (Hilbert transform) of a real 1D array.

apowin

Apodization window.

stackplot

Plot spectra in a vertically stacked arrangement.

Time-domain signal processing#

fdaxis

Compute FFT frequency axis with DC at center.

ctafft

Cross-term averaged FFT.

ewrls

Exponentially weighted RLS adaptive filter.

lpsvd

Linear Prediction SVD.

LPSVDResult

Parameters estimated by LPSVD.

mlpsvd

Perform 2D Linear Prediction SVD on spectral data.

MLPSVDResult

Result of mlpsvd analysis.

exponfit

Fit exponential decay or recovery curves.

rapidscan2spc

Convert sinusoidal rapid-scan signal to field-swept EPR spectrum.