Click or drag to resize

CategoricalVariableFromDoubleMatrix Method

Converts from DoubleMatrix to CategoricalVariable.

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

Parameters

value
Type: Novacta.AnalyticsDoubleMatrix
The object to convert.

Return Value

Type: CategoricalVariable
The converted object.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentOutOfRangeExceptionvalue is not a column vector.
InvalidOperationExceptionvalue has two equal entries.
-or-
value has two rows having the same name.
Remarks
The matrix is successfully converted only if it represents a column vector. The variable result of the conversion will have a number of categories equal the matrix number of rows. Each matrix row corresponds to a category, whose code is the value on the row, while its label is the row name, if any, or the result of the conversion of the code to a string. The name of the matrix is set equal to the variable name.
See Also