Click or drag to resize

RegionHelperGetRegionRanges Method

Gets the region ranges.

Namespace: Altaxo.Science.Spectroscopy
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static IEnumerable<(int Start, int End)> GetRegionRanges(
	int[]? regions,
	int arrayLength
)

Parameters

regions  Int32
The regions. Each element designates the start index of a new region. It is not necessary to set the first point of the array to zero. If or an empty array is provided, the full range is returned.
arrayLength  Int32
Length of the array.

Return Value

IEnumerableValueTupleInt32, Int32
An enumeration of regions as tuples of start index and end index (exclusive).
See Also