Description Usage Arguments Value Examples
The function applies a Savitkzy-Golay smoothing filter on the spectra file based on settings defined by the user.
1 | savit.gol(x, filt, filt_order = 4, der_order = 0)
|
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. |
Return the spectra with the removed region. The rows corresponding to the range specified are removed.
1 2 | data("MPdatabase")
smooth.vect<-savit.gol(MPdatabase[,6], filt=11)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.