sgolayCpp: Smooth chromatogram with savitzky-golay filter.

View source: R/RcppExports.R

sgolayCppR Documentation

Smooth chromatogram with savitzky-golay filter.

Description

Smooth chromatogram with savitzky-golay filter.

Usage

sgolayCpp(chrom, kernelLen, polyOrd)

Arguments

chrom

(matrix) chromatogram containing time and intensity vectors.

kernelLen

(integer) length of filter. Must be an odd number.

polyOrd

(integer) TRUE: remove background from peak signal using estimated noise levels.

Value

(matrix).

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca ORCID: 0000-0003-3500-8152 License: (c) Author (2020) + MIT Date: 2019-12-31

Examples

data("XIC_QFNNTDIVLLEDFQK_3_DIAlignR", package = "DIAlignR")
XICs <- XIC_QFNNTDIVLLEDFQK_3_DIAlignR[["hroest_K120809_Strep0%PlasmaBiolRepl2_R04_SW_filt"]][["4618"]]
xic <- sgolayCpp(as.matrix(XICs[[1]]), kernelLen = 11L, polyOrd = 4L)

shubham1637/DIAlign documentation built on March 27, 2023, 7:12 a.m.