FindAllPeaks | R Documentation |
This function finds the indices of all peaks in the given signal vector. A peak is taken to occur whenever a rising part in the signal is followed by a falling part.
FindAllPeaks(inSignal, inFlatPreference = "center")
inSignal |
the signal that is scanned for peaks (a |
inFlatPreference |
preference for choosing exact position in case of flat peaks:
If empty or not specified, "center" is used by default. |
A numeric vector with the indices of the peaks (could be empty!).
Marc Vidal (R
version). Based on the original code from IPEM Toolbox.
data(SchumannKurioseGeschichte) Ps <- FindAllPeaks(SchumannKurioseGeschichte)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.