Vector.Bin<T>(IVector, Interval Index<T>) Method
Sorts values into bins and returns the result as a categorical vector.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A categorical vector containing the bin assignments.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static CategoricalVector<Interval<T>> Bin<T>(
this IVector values,
IntervalIndex<T> index
)
where T : Object, IComparable<T>
Parameters
- values IVector
- A vector.
- index IntervalIndex<T>
- An interval index describing the bins.
Type Parameters
- T
- The type of the values to sort.
Return Value
CategoricalVector<Interval<T>>A categorical vector containing the bin assignments.