Click or drag to resize
Accord.NET (logo)

MeasuresWeightedEntropy Method (Double, Double, 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(
	double[] values,
	double[] weights,
	int classes
)
Request Example View Source

Parameters

values
Type: SystemDouble
An array of integer symbols.
weights
Type: SystemDouble
The importance for each sample.
classes
Type: SystemInt32
The number of distinct classes.

Return Value

Type: Double
The evaluated entropy.
See Also