Constructs a new categorical vector using
the specified category index.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
CategoricalVector<T> WithCategories<T>(
IList<T> newIndex
)
Function WithCategories(Of T) (
newIndex As IList(Of T)
) As CategoricalVector(Of T)
generic<typename T>
CategoricalVector<T>^ WithCategories(
IList<T>^ newIndex
)
abstract WithCategories :
newIndex : IList<'T> -> CategoricalVector<'T>
Parameters
- newIndex
- Type: System.Collections.GenericIListT
The category index of the new
categorical vector.
Type Parameters
- T
- The element type of the new vector.
Return Value
Type:
CategoricalVectorTA new vector with element type
T
that has the same level indexes as this vector and assigns
them the values in
newIndex.
Exception | Condition |
---|
DimensionMismatchException | The number
of elements in newIndex is less than
the number of categories in the vector's current index. |
Reference