Histogram.Create<T> Method
Creates a new histogram.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A histogram.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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. |