SpectralPreprocessingOptionsIdentifyRegions Method |
Tries to identify spectral regions by analyzing the spectral X values.
Namespace: Altaxo.Calc.Regression.MultivariateAssembly: 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, ...).
Return Value
Int32The array of regions. Each element in the array is the starting index of a new region into
xvalues.
Remarks
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).
(But in this case almost all spectral correction methods also fail.)
See Also