Smoothing a GCIMS sample using a Savitzky-Golay filter

# S4 method for GCIMSSample
smooth(x, dt_length_ms, rt_length_s, dt_order = 2, rt_order = 2)

Arguments

x

A GCIMSSample object

dt_length_ms

the length of the filter in drift time (in ms)

rt_length_s

The length of the filter in retention time (in s)

dt_order

The order of the filter in drift time

rt_order

The order of the filter in retention time

Value

The modified GCIMSSample