tdsr: Time-domain spectral registration.

View source: R/tdsr.R

tdsrR Documentation

Time-domain spectral registration.

Description

An implementation of the method published by Near et al MRM 73:44-50 (2015).

Usage

tdsr(mrs_data, ref = NULL, xlim = c(4, 0.5), max_t = 0.2)

Arguments

mrs_data

MRS data to be corrected.

ref

optional MRS data to use as a reference, the mean of all dynamics is used if this argument is not supplied.

xlim

optional frequency range to perform optimisation, set to NULL to use the full range.

max_t

truncate the FID when longer than max_t to reduce time taken.

Value

a list containing the corrected data; phase and shift values in units of degrees and Hz respectively.


martin3141/spant documentation built on April 14, 2024, 4:15 a.m.