Learn R Programming

mQTL (version 1.0)

sgolayDeriv: Calculate smoothed derivates

Description

Calculate smoothed derivates using Savitzky-Golay filter

Usage

sgolayDeriv(dpSpectr, iOrder, iFrameLen, j)

Arguments

dpSpectr

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

See Also

sgolay

Examples

Run this code
# NOT RUN {
## 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)

# }

Run the code above in your browser using DataLab