You are here: Start » AVL.NET » AVL.MakeHistogram(int[], float, float, float, AvlNet.Histogram)

AVL.MakeHistogram(int[], float, float, float, AvlNet.Histogram)

Creates a histogram assuming given bin values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void MakeHistogram(
	int[] inValues,
	float inDomainStart,
	float inDomainLength,
	float inBinSize,
	out AvlNet.Histogram outHistogram
)

Parameters

inValues
Type: System.Int32
Input array of bin values
inDomainStart
Type: System.Single
Input domain begin
inDomainLength
Type: System.Single
Input domain length
inBinSize
Type: System.Single
Input length of the domain range covered by a single bin
outHistogram
Type: AvlNet.Histogram
Output histogram

Remarks

The calculated bin count must be equal to element count of the inValues array.

Errors

Error type Description
DomainError Empty inValues array on input in MakeHistogram.
DomainError Non-positive value of inBinSize in MakeHistogram.
DomainError The calculated bins count is greater than input values count in inValues.
DomainError The calculated bins count is less than input values count in inValues.

See also