HSVD based signal filter described in: Barkhuijsen H, de Beer R, van Ormondt D. Improved algorithm for noniterative and timedomain model fitting to exponentially damped magnetic resonance signals. J Magn Reson 1987;73:553-557.
hsvd_filt(mrs_data, xlim = c(-30, 30), comps = 40, irlba = TRUE, max_damp = 10)
mrs_data | MRS data to be filtered. |
---|---|
xlim | frequency range in Hz to filter. |
comps | number of Lorentzian components to use for modelling. |
irlba | option to use irlba SVD (logical). |
max_damp | maximum allowable damping factor. |
filtered data.