R/mrs_data_proc.R
auto_phase.Rd
Perform zeroth-order phase correction based on the minimisation of the squared difference between the real and magnitude components of the spectrum.
auto_phase(mrs_data, xlim = c(4, 1.8), smo_ppm_sd = 0.05, ret_phase = FALSE)
MRS data object and phase values (optional).