findMainPeak | R Documentation |
The function uses a combination of the area under the curve between valleys and the peak height to detect the main peak.
findMainPeak(x, ab, mStart, withHeight = FALSE, prevPeak = NULL)
x |
(numeric) vector of data points |
ab |
(numeric) vector specifying the lower and higher truncation limit of density estimation |
mStart |
(integer) specifying the width of the smoothing kernel(s) used for density estimation |
withHeight |
(logical) specifying if only the area under the curve (FALSE) or a combination of AUC and peak height (TRUE) should be used to detect the main peak |
prevPeak |
(numeric) specifying the modEst of the previously estimated peak |
(list) with the two numeric values peakInd, modEst, and a density list
Tatjana Ammer tatjana.ammer@roche.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.