
Simulate a MRS data object containing a set of simulated resonances.
sim_resonances(
freq = 0,
amp = 1,
lw = 0,
lg = 0,
phase = 0,
freq_ppm = TRUE,
acq_paras = def_acq_paras()
)
resonance frequency.
resonance amplitude.
line width in Hz.
Lorentz-Gauss lineshape parameter (between 0 and 1).
phase in degrees.
frequencies are given in ppm units if set to TRUE, otherwise Hz are assumed.
list of acquisition parameters. See
def_acq_paras
MRS data object.
# NOT RUN {
sim_data <- sim_resonances(freq = 2, lw = 5)
# }
Run the code above in your browser using DataLab