Click or drag to resize

PeakSearchingNoneGetWidthValue Method

Gets the width value from the fractional indices of the left side, the peak position, and the right side.

Namespace: Altaxo.Science.Spectroscopy.PeakSearching
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double GetWidthValue(
	double[] x,
	double leftIdx,
	double middleIdx,
	double rightIdx
)

Parameters

x  Double
The x array.
leftIdx  Double
Index of the left side.
middleIdx  Double
Index of the peak position.
rightIdx  Double
Index of the right side.

Return Value

Double
The width value. Attention: can be negative if the x array is sorted descending.
See Also