Click or drag to resize

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

Gets a boolean array, in which local extrema in a spectrum are marked as true.

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

Parameters

data  IReadOnlyListDouble
The data array.
comparator  FuncDouble, Double, Boolean
The comparator. To find maxima, use the greater operator ((x,y)=>x>y)
order  Int32  (Optional)
The order. Must at least 1. The order are the number of points to the left and right of the point under consideration, that must fullfill the comparator condition.

Return Value

Boolean
An array in which points where a local extrema was found are marked with true.
See Also