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.PeakSearchingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
DoubleThe width value. Attention: can be negative if the x array is sorted descending.
See Also