Perform l2 regularisation artefact suppression using the method proposed by Bilgic et al. JMRI 40(1):181-91 2014.
l2_reg(
mrs_data,
thresh = 0.05,
b = 1e-11,
A = NA,
xlim = NA,
thresh_xlim = NULL,
A_append = NULL,
ret_norms = FALSE
)
input data for artefact suppression.
threshold parameter to extract lipid signals from mrs_data based on the spectral integration of the thresh_xlim region in magnitude mode.
regularisation parameter.
set of spectra containing the artefact basis signals. The thresh parameter is ignored when A is specified.
spectral limits in ppm to restrict the reconstruction range. Defaults to the full spectral width.
spectral limits in ppm to integrate for the threshold map.
additional spectra to append to the A basis.
return the residual norm and solution norms.
l2 reconstructed mrs_data object.