rats: Robust Alignment to a Target Spectrum (RATS).

Description Usage Arguments Value

View source: R/rats.R

Description

Robust Alignment to a Target Spectrum (RATS).

Usage

1
2
3
4
5
6
7
8
rats(
  mrs_data,
  ref = NULL,
  xlim = c(4, 0.5),
  max_shift = 20,
  p_deg = 2,
  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_shift

maximum allowable frequency shift in Hz.

p_deg

polynomial degree used for baseline modelling. Negative values disable baseline modelling.

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.


neuroconductor-devel-releases/spant documentation built on May 6, 2020, 4:29 p.m.