You are here: Start » AVL.NET » AVL.CropHistogram(AvlNet.Histogram, int, int, AvlNet.Histogram)

AVL.CropHistogram(AvlNet.Histogram, int, int, AvlNet.Histogram)

Confines a histogram to its continuous segment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CropHistogram(
	AvlNet.Histogram inHistogram,
	int inStart,
	int inLength,
	out AvlNet.Histogram outHistogram
)

Parameters

inHistogram
Type: AvlNet.Histogram
Input histogram
inStart
Type: System.Int32
Index of the first element of the input histogram that will be included in the output histogram
inLength
Type: System.Int32
Number of bins in the output histogram
outHistogram
Type: AvlNet.Histogram
Output histogram

Description

Operation crops histogram to bins which are enclosed in inLength bins beginning from inStart bin.

Examples

CropHistogram performed on the sample histogram with inStart = 15, inLength = 65.

Errors

Error type Description
DomainError Selected index range exceeds the input histogram in CropHistogram.

See also