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