sgolayDeriv: Calculate smoothed derivates

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculate smoothed derivates using Savitzky-Golay filter

Usage

1
sgolayDeriv(dpSpectr, iOrder, iFrameLen, j)

Arguments

dpSpectr

a vector specifying the input spectrum

iOrder

polynomial order of Savitzky - Golay filter

iFrameLen

Savitzky-Golay frame length in ppm scale

j

order of derivative

Value

jth dervitative of the spectrum

Author(s)

Lyamine Hedjazi

See Also

sgolay

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Data

Sp=matrix(rnorm(10*13454,mean=0,sd=1), nrow=10,ncol=13454)

## Peak picking
Spectrum<-Sp[10,]
iOrder <- 3
iFrameLen<- 11
j<-2

SpDerivs<-sgolayDeriv(Spectrum,iOrder,iFrameLen,j)

lhedjazi/mQTL.NMR documentation built on May 31, 2019, 10:47 p.m.