Histogram.Create<T> Method
Creates a new histogram.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A histogram.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
Argument | bins is null. -or- values is null. |
Dimension | The length of bins does not equal the length of values. |