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

AVL.CreateHistogram(float[], int[], float, float?, float?, AvlNet.Histogram)

Creates the histogram of the array of real numbers.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateHistogram(
	float[] inArray,
	int[] inWeights,
	float inBinSize,
	float? inDomainStart,
	float? inDomainLength,
	out AvlNet.Histogram outHistogram
)

Parameters

inArray
Type: System.Single
Array from which histogram will be generated
inWeights
Type: System.Int32
Weights corresponding to the elements of 'inArray', or null.
inBinSize
Type: System.Single
Input bin size
inDomainStart
Type: System.Nullable<System.Single>
Input domain begin, or null.
inDomainLength
Type: System.Nullable<System.Single>
Input domain length, or null.
outHistogram
Type: AvlNet.Histogram
Output histogram

Description

The operation creates a histogram of inArray values.

Errors

Error type Description
DomainError Input bin width is incorrect in CreateHistogram.
DomainError Input boundaries are incorrect in CreateHistogram.
DomainError Inconsistent array lengths at inArray and inWeights in CreateHistogram.
DomainError Negative weight encountered in CreateHistogram.

See also