SignalMathGetIndicesOfExtrema Method |
Gets the indices of the extrema (minima and maxima) of the signal
Namespace: Altaxo.Science.SignalsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static (List<int> IndicesOfMinima, List<int> IndicesOfMaxima) GetIndicesOfExtrema(
IReadOnlyList<double> y,
List<int>? indicesOfMinima = null,
List<int>? indicesOfMaxima = null
)
Parameters
- y IReadOnlyListDouble
- The y-values of the signal.
- indicesOfMinima ListInt32 (Optional)
- A list that can be recycled as the list of indices of minima. If null, a new list for the indices of minima will be allocated.
- indicesOfMaxima ListInt32 (Optional)
- A list that can be recycled as the list of indices of maxima. If null, a new list for the indices of maxima will be allocated.
Return Value
ValueTupleListInt32,
ListInt32A tuple, which contains the list of indices of the minima and maxima of the signal. Note that the start and end of the signal can not be a minimum or maximum.
See Also