Returns a two-dimensional histogram of the values in two vectors.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<double> CreateHistogram2D<T, U>(
Vector<T> rowSamples,
IntervalIndex<T> rowBins,
Vector<U> columnSamples,
IntervalIndex<U> columnBins,
Vector<double> weights
)
where T : Object, IComparable<T>
where U : Object, IComparable<U>
Public Shared Function CreateHistogram2D(Of T As {Object, IComparable(Of T)}, U As {Object, IComparable(Of U)}) (
rowSamples As Vector(Of T),
rowBins As IntervalIndex(Of T),
columnSamples As Vector(Of U),
columnBins As IntervalIndex(Of U),
weights As Vector(Of Double)
) As Matrix(Of Double)
public:
generic<typename T, typename U>
where T : Object, IComparable<T>
where U : Object, IComparable<U>
static Matrix<double>^ CreateHistogram2D(
Vector<T>^ rowSamples,
IntervalIndex<T>^ rowBins,
Vector<U>^ columnSamples,
IntervalIndex<U>^ columnBins,
Vector<double>^ weights
)
static member CreateHistogram2D :
rowSamples : Vector<'T> *
rowBins : IntervalIndex<'T> *
columnSamples : Vector<'U> *
columnBins : IntervalIndex<'U> *
weights : Vector<float> -> Matrix<float> when 'T : Object and IComparable<'T> when 'U : Object and IComparable<'U>
Parameters
- rowSamples
- Type: Extreme.MathematicsVectorT
A vector containing values for the row dimension. - rowBins
- Type: Extreme.DataAnalysisIntervalIndexT
An interval index that specifies the bins for rowSamples. - columnSamples
- Type: Extreme.MathematicsVectorU
A vector containing values for the column dimension - columnBins
- Type: Extreme.DataAnalysisIntervalIndexU
An interval index that specifies the bins for columnSamples. - weights
- Type: Extreme.MathematicsVectorDouble
A vector that supplies weights for the samples.
Type Parameters
- T
- The type of the row samples.
- U
- The type of the column samples.
Return Value
Type:
MatrixDoubleA matrix containing a histogram of the values in
rowSamples
and
columnSamples, binned using
rowBins
and
columnBins.
Reference