CategoricalEncoding.BackwardDifference Method

Definition

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

Overload List

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

BackwardDifference(IIndex)

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

Parameters

categoryIndex  IIndex
An index that specifies the levels.

Return Value

CategoricalEncoding

BackwardDifference(IIndex, Int32)

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

Parameters

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

Return Value

CategoricalEncoding

See Also