savit.gol {RamanMP} | R Documentation |
Savitzky–Golay smoothing
Description
The function applies a Savitkzy-Golay smoothing filter on the spectra file based on settings defined by the user.
Usage
savit.gol(x, filt, filt_order = 4, der_order = 0)
Arguments
x |
A vector with the intensity values that should be smoothed. |
filt |
Numeric.The length of the filter length, must be odd. |
filt_order |
Numeric. Filter order: 2 = quadratic filter, 4 = quartic. Default is 4. |
der_order |
Numeric. Derivative order: 0 = smoothing, 1 = first derivative, etc. Default is 0. |
Value
Return the spectra with the removed region. The rows corresponding to the range specified are removed.
Examples
data("MPdatabase")
smooth.vect<-savit.gol(MPdatabase[,6], filt=11)
[Package RamanMP version 1.0 Index]