Returns an encoding where every level except the reference level is encoded using
one of three values: 1 if the value equals the level,
-1 if the value equals the reference level, and 0 otherwise.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static CategoricalEncoding Deviation(
IIndex categoryIndex,
int referenceLevel = -1
)
Public Shared Function Deviation (
categoryIndex As IIndex,
Optional referenceLevel As Integer = -1
) As CategoricalEncoding
public:
static CategoricalEncoding^ Deviation(
IIndex^ categoryIndex,
int referenceLevel = -1
)
static member Deviation :
categoryIndex : IIndex *
?referenceLevel : int
(* Defaults:
let _referenceLevel = defaultArg referenceLevel -1
*)
-> CategoricalEncoding
Parameters
- categoryIndex
- Type: Extreme.DataAnalysisIIndex
An index that specifies the levels. - referenceLevel (Optional)
- Type: SystemInt32
The zero-based index of the reference level.
A negative value indicates the level is counted from the end.
Return Value
Type:
CategoricalEncoding
Reference