|
MeasuresWeightedEntropy Method (Double, Double, 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(
double[] values,
double[] weights,
int startValue,
int endValue
)
Public Shared Function WeightedEntropy (
values As Double(),
weights As Double(),
startValue As Integer,
endValue As Integer
) As Double
Request Example
View SourceParameters
- values
- Type: SystemDouble
An array of integer symbols. - weights
- Type: SystemDouble
The importance for each sample. - startValue
- Type: SystemInt32
The starting symbol. - endValue
- Type: SystemInt32
The ending symbol.
Return Value
Type:
DoubleThe evaluated entropy.
See Also