Histogram.Create<T> Method

Creates a new histogram.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public static Histogram<T> Create<T>(
	Index<T> bins,
	Vector<double> values
)

Parameters

bins  Index<T>
An index containing the labels for each bin.
values  Vector<Double>
The values of each bin.

Type Parameters

T
The type of the bin labels.

Return Value

Histogram<T>
A histogram.

Exceptions

ArgumentNullException

bins is null.

-or-

values is null.

DimensionMismatchException

The length of bins does not equal the length of values.

See Also