Click or drag to resize

RegionHelperNormalizeRegions Method

Normalizes a list of region start indices.

Namespace: Altaxo.Science.Spectroscopy
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static int[]? NormalizeRegions(
	List<int> regions,
	int length
)

Parameters

regions  ListInt32
The regions list. Each element designates the start index of a new region.
length  Int32
The length of the underlying data array.

Return Value

Int32
A normalized regions array, or if no regions are present or normalization results in a single full-length region.
See Also