Click or drag to resize

PeakFinderCWTGetRelativeExtrema(IROMatrixDouble, FuncDouble, Double, Boolean, Int32, Int32) Method

Gets a boolean matrix of the same dimensions as the provided data matrix, in which the points at which a relative extrema is found, are set to true.

Namespace: Altaxo.Science.Spectroscopy.PeakSearching
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static bool[,] GetRelativeExtrema(
	IROMatrix<double> data,
	Func<double, double, bool> comparator,
	int axis = 0,
	int order = 1
)

Parameters

data  IROMatrixDouble
The data matrix.
comparator  FuncDouble, Double, Boolean
The comparator function.
axis  Int32  (Optional)
The axis which is iterated over. 0: for each column, the maxima of the row values will be evaluated. 1: for each row, the maxima of the column values will be evaluated.
order  Int32  (Optional)
The number of points to compare to the left and right of the considered point Must be >=1.

Return Value

Boolean
A boolean matrix with the same dimensions as data, where relative extrema positions are set to .
Exceptions
ExceptionCondition
NotImplementedExceptionThrown when axis is neither 0 nor 1.
See Also