Returns a new categorical vector that uses the specified
index to encode values.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public CategoricalVector<U> WithCategories<U>(
IList<U> newIndex
)
Public Function WithCategories(Of U) (
newIndex As IList(Of U)
) As CategoricalVector(Of U)
public:
generic<typename U>
virtual CategoricalVector<U>^ WithCategories(
IList<U>^ newIndex
) sealed
abstract WithCategories :
newIndex : IList<'U> -> CategoricalVector<'U>
override WithCategories :
newIndex : IList<'U> -> CategoricalVector<'U>
Parameters
- newIndex
- Type: System.Collections.GenericIListU
A list of values that make up the category
index of the new vector.
Type Parameters
- U
- The element type of the new index.
Return Value
Type:
CategoricalVectorUA new categorical vector with the same
level indexes but
newIndex as its category index.
Reference