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