Click or drag to resize

CategoricalVariable  Conversion (CategoricalVariable to DoubleMatrix)

Performs an explicit conversion from CategoricalVariable to DoubleMatrix.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static explicit operator DoubleMatrix (
	CategoricalVariable value
)

Parameters

value
Type: Novacta.AnalyticsCategoricalVariable
The object to convert.

Return Value

Type: DoubleMatrix
The converted object.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
Remarks

The variable is converted to a column vector whose number of rows equals the number of categories in the variable. Each row corresponds to a category, whose label is the row name, while the category code is the matrix entry in the row. The name of the matrix is set equal to the variable name.

See Also