| CategoricalVariable Conversion (DoubleMatrix to CategoricalVariable) |
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public static explicit operator CategoricalVariable (
DoubleMatrix value
)
Public Shared Narrowing Operator CType (
value As DoubleMatrix
) As CategoricalVariable
static explicit operator CategoricalVariable^ (
DoubleMatrix^ value
)
F# does not support the declaration of new casting operators.
Parameters
- value
- Type: Novacta.AnalyticsDoubleMatrix
The object to convert.
Return Value
Type:
CategoricalVariable
The converted object.
Exceptions 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 equals 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