Integrate a spectral region.

int_spec(mrs_data, xlim = NULL, scale = "ppm", mode = "re", summation = "sum")

Arguments

mrs_data

MRS data.

xlim

spectral range to be integrated (defaults to full range).

scale

units of xlim, can be : "ppm", "Hz" or "points".

mode

spectral mode, can be : "re", "im", "mod" or "cplx".

summation

can be "sum" (default), "mean" or "l2".

Value

an array of integral values.