CategoricalEncoding.ForwardDifference Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

ForwardDifference(IIndex) Returns an encoding where every level is compared to the next level.
ForwardDifference(IIndex, Int32) Returns an encoding where every level is compared to the next level.

ForwardDifference(IIndex)

Returns an encoding where every level is compared to the next level.
C#
public static CategoricalEncoding ForwardDifference(
	IIndex categoryIndex
)

Parameters

categoryIndex  IIndex
An index that specifies the levels.

Return Value

CategoricalEncoding

ForwardDifference(IIndex, Int32)

Returns an encoding where every level is compared to the next level.
C#
public static CategoricalEncoding ForwardDifference(
	IIndex categoryIndex,
	int referenceLevel = -1
)

Parameters

categoryIndex  IIndex
An index that specifies the levels.
referenceLevel  Int32  (Optional)
Not used.

Return Value

CategoricalEncoding

See Also