Learn R Programming

speaq (version 2.7.0)

returnLocalMaxima: Local maximum detection

Description

Find and return local maximum of a single spectrum.

Usage

returnLocalMaxima(spectrum)

Arguments

spectrum

A spectral sample in the vector format.

Value

list of 2: locMax (Locations of the found local maximum peaks) and pkMax (Intensities of the found local maximum peaks)

Examples

Run this code
# NOT RUN {
res=makeSimulatedData();
X=res$data;
groupLabel=res$label;
returnLocalMaxima(X[2,])
                       
# }

Run the code above in your browser using DataLab