PeakFinder_local_maxima_1d Method |
Find local maxima in a 1D array.
This function finds all local maxima in a 1D array and returns the indices
for their edges and midpoints(rounded down for even plateau sizes).
Namespace: Altaxo.Science.Spectroscopy.PeakSearchingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public (int[] , int[] , int[] ) _local_maxima_1d(
double[] x
)
Parameters
- x Double
- The array (e.g., a spectrum).
Return Value
ValueTupleInt32,
Int32,
Int32Tuple of midpoints (indices of midpoints of local maxima), LeftEdges: Indices of edges to the left of local maxima, and RightEdges: Indices of edges to the right of local maxima.
Remarks
A maxima is defined as one or more samples of equal value that are
surrounded on both sides by at least one smaller sample.
See Also