Histogram.Create<T> Method

Creates a new histogram.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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