smooth performs smoothing of the intensity values.
Usage
smooth(data, lambda = 20, dir = "XY")
Value
A data.frame object. A list of two data frames. A TIC data
frame and an MS data frame.
Arguments
data
a list object. Data extracted from a cdf file,
ideally the output from extract_data().
lambda
a float object. A number (parameter in Whittaker
smoothing), suggested between 0 to 10^4. Small lambda is very little
smoothing, large lambda is very smooth. Default is lambda = 20.
dir
a string object. Either "X", "Y", or "XY" to indicate
direction of smoothing. "XY" indicates smoothing in both X (horizontal) and Y
(vertical) directions. Default "XY".
Details
This function performs smoothing of the intensity values using
Whittaker smoothing algorithm whit1 from the ptw package
ptwgcxgclab.