estimateBaseline-GCIMSSpectrum-method.Rd
The baseline is estimated by connecting local minima and interpolating from those.
The local minima are identified as "the minima in each region of length x"
The length of the regions are estimated as fwhm * a multiplier / 2.3482
. This
assumes it's several times
# S4 method for class 'GCIMSSpectrum'
estimateBaseline(object, dt_peak_fwhm_ms, dt_region_multiplier = 12)
# S4 method for class 'GCIMSSpectrum'
baseline(object, dt_range = NULL, dt_idx = NULL, .error_if_missing = TRUE)
# S4 method for class 'GCIMSSpectrum'
baseline(object) <- value
A GCIMSSpectrum object
Full Width at Half Maximum in milliseconds. Used to determine the length of the regions where local minima are searched.
A multiplier to calculate the region
The minimum and maximum drift times to extract (length 2 vector)
A numeric vector with the drift time indices to extract (or a logical vector of the length of drift time)
A logical. If TRUE
(default) give an error if baseline is not estimated. Returns NULL
otherwise.
A vector with a baseline of the same length as intensity(object)
The modified GCIMSSpectrum
baseline(GCIMSSpectrum)
: Get the baseline
baseline(GCIMSSpectrum) <- value
: Set the baseline