Encodes an array of ordinal categories into an array of transformed
percentages.
Namespace:
Imsl.DataMining.NeuralAssembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual double[] Encode( int[] x ) |
Visual Basic (Declaration) |
---|
Public Overridable Function Encode ( _ x As Integer() _ ) As Double() |
Visual C++ |
---|
public: virtual array<double>^ Encode( array<int>^ x ) |
Parameters
- x
- Type: array<
System..::.Int32
>[]()[]
An int array containing the categories for the ordinal variable.
Return Value
A double array of the transformed percentages.Remarks
Categories must be numbered from 1 to nClasses.