sgolayDeriv: Calculate smoothed derivates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mQTL.R

Description

Calculate smoothed derivates using Savitzky-Golay filter

Usage

1
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

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)

mQTL documentation built on May 1, 2019, 7:30 p.m.