Click or drag to resize
Accord.NET (logo)

MeasuresWeightedEntropy Method (IListInt32, IListDouble, Int32, Int32)

Computes the entropy for the given values.

Namespace:  Accord.Statistics
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double WeightedEntropy(
	IList<int> values,
	IList<double> weights,
	int startValue,
	int endValue
)
Request Example View Source

Parameters

values
Type: System.Collections.GenericIListInt32
An array of integer symbols.
weights
Type: System.Collections.GenericIListDouble
The importance for each sample.
startValue
Type: SystemInt32
The starting symbol.
endValue
Type: SystemInt32
The ending symbol.

Return Value

Type: Double
The evaluated entropy.
See Also