RegionHelperIdentifyRegions Method |
Tries to identify spectral regions based on the provided spectral x-values.
An end of a region is recognized when the gap between two consecutive x-values is ten times larger
than the previous gap, or if the sign of the gap changes.
This method fails if a spectral region contains only a single point (since no gap value can be obtained then).
(In this case, almost all spectral correction methods also fail.)
Namespace: Altaxo.Science.SpectroscopyAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static int[] IdentifyRegions(
IReadOnlyList<double> xvalues
)
Parameters
- xvalues IReadOnlyListDouble
- The vector of x-values for the spectra (wavelengths, frequencies, etc.).
Return Value
Int32
The array of regions. Each element in the array is the start index of a new region in
xvalues.
See Also