sgolayDeriv {mQTL.NMR}R Documentation

Calculate smoothed derivates

Description

Calculate smoothed derivates using Savitzky-Golay filter

Usage

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


## 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)


[Package mQTL.NMR version 1.14.0 Index]