Scale mrs_data to a spectral region.
scale_spec(
mrs_data,
xlim = NULL,
operator = "sum",
freq_scale = "ppm",
mode = "re",
mean_dyns = NULL,
ret_scale_factor = FALSE
)
MRS data.
spectral range to be integrated (defaults to full range).
can be "sum" (default), "mean", "l2", "max", "min" or "max-min".
units of xlim, can be : "ppm", "Hz" or "points".
spectral mode, can be : "re", "im", "mod" or "cplx".
mean the dynamic scans before applying the operator. The same scaling value will be applied to each individual dynamic.
option to return the scaling factor in addition to the scaled data.
normalised data.