savit.gol: Savitzky–Golay smoothing

Description Usage Arguments Value Examples

View source: R/savit.gol.R

Description

The function applies a Savitkzy-Golay smoothing filter on the spectra file based on settings defined by the user.

Usage

1
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

1
2
data("MPdatabase")
smooth.vect<-savit.gol(MPdatabase[,6], filt=11)

RamanMP documentation built on July 9, 2021, 9:07 a.m.

Related to savit.gol in RamanMP...