CategoricalVector<T>.AsCategorical Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

AsCategorical(Index<T>) Returns a categorical vector containing the same data as this vector.
AsCategorical(SortOrder) Returns a categorical vector containing the same data as this vector.

AsCategorical(Index<T>)

Returns a categorical vector containing the same data as this vector.
C#
public override CategoricalVector<T> AsCategorical(
	Index<T> index
)

Parameters

index  Index<T>
The index used to encode the categories.

Return Value

CategoricalVector<T>
A new categorical vector, or this instance if it is already categorical, with values encoded using index.

AsCategorical(SortOrder)

Returns a categorical vector containing the same data as this vector.
C#
public override CategoricalVector<T> AsCategorical(
	SortOrder sortOrder
)

Parameters

sortOrder  SortOrder
 

Return Value

CategoricalVector<T>
A new categorical vector, or this instance if it is already categorical.

See Also