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.3448.0 (4.8.3448.0)
Syntaxpublic 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 reused as return value for the indices of minima.
If , a new list for the indices of minima will be allocated.
- indicesOfMaxima ListInt32 (Optional)
-
A list that can be reused as return value for the indices of maxima.
If , a new list for the indices of maxima will be allocated.
Return Value
ValueTupleListInt32,
ListInt32
A tuple containing the list of indices of the minima and maxima of the signal.
Note that the start and end of the signal cannot be a minimum or maximum.
See Also