DetectPeaks_C: DetectPeaks_C.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Detect peaks from a Rcpp::NumericVector object and returns data in a R matrix. This method is only exported to be use by R function DetectPeaks which is an actual R function. The returned peak positions follows C indexing style, this is starts with zero.

Usage

1
DetectPeaks_C(mass, intensity, SNR = 5, WinSize = 20L, UpSampling = 10L)

Arguments

mass

a NumericVector containing the mass axis of the spectrum.

intensity

a NumericVector where peaks must be detected.

SNR

Only peaks with an equal or higher SNR are retained.

WinSize

The windows used to detect peaks and caculate noise.

UpSampling

the oversampling used for acurate mass detection and area integration.

Value

a NumerixMatrix of 5 rows corresponding to: mass, intensity of the peak, SNR, area and binSize.


prafols/rMSIproc documentation built on Dec. 12, 2021, 7:31 p.m.