| CategoricalVariableFromDoubleMatrix Method |
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public static CategoricalVariable FromDoubleMatrix(
DoubleMatrix value
)
Public Shared Function FromDoubleMatrix (
value As DoubleMatrix
) As CategoricalVariable
public:
static CategoricalVariable^ FromDoubleMatrix(
DoubleMatrix^ value
)
static member FromDoubleMatrix :
value : DoubleMatrix -> CategoricalVariable
Parameters
- value
- Type: Novacta.AnalyticsDoubleMatrix
The object to convert.
Return Value
Type:
CategoricalVariableThe 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 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