FindNearestMinima | R Documentation |
Finds the nearest minima to the left and the right of the specified peak. Peaks can be found with FindAllPeaks
.
FindNearestMinima(inSignal, inPeakIndex)
inSignal |
the index of the nearest miminum to the left of the peak if no real minimum was found, 1 is returned. |
inPeakIndex |
the index of the nearest miminum to the right of the peak. If no real minimum was found, |
A list of two elements:
LeftIndex |
the index of the nearest miminum to the left of the peak. If no real minimum was found, 1 is returned. |
RightIndex |
the index of the nearest miminum to the right of the peak. If no real minimum was found, |
Marc Vidal (R
version). Based on the original code from IPEM Toolbox.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.