Click or drag to resize

RegionHelperIdentifyRegions Method

Trys to identify spectral regions by supplying the spectral x values. A end_of_region is recognized when the gap between two x-values is ten times higher than the previous gap, or if the sign of the gap value changes. This method fails if a spectral region contains only a single point (since no gap value can be obtained then). (But in this case almost all spectral correction methods also fails).

Namespace: Altaxo.Science.Spectroscopy
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int[] IdentifyRegions(
	IReadOnlyList<double> xvalues
)

Parameters

xvalues  IReadOnlyListDouble
The vector of x values for the spectra (wavelength, frequencies...).

Return Value

Int32
The array of regions. Each element in the array is the starting index of a new region into the vector xvalues.
See Also