public class ShannonEntropy extends EmpiricalEntropy
ERROR_VALUE| Constructor and Description |
|---|
ShannonEntropy() |
| Modifier and Type | Method and Description |
|---|---|
double |
entropy(double[] frequencies,
int distinctValues,
int numberOfValues)
Compute the entropy of a vector of values (non missing values (NaN))
|
boolean |
hasNativeImplementation()
Know if the measure owns a native implementation
|
entropy, jointEntropy, measure, requireDataTransformation, transformpublic double entropy(double[] frequencies,
int distinctValues,
int numberOfValues)
Entropyentropy in class EmpiricalEntropyfrequencies - The occurrences array (of values)distinctValues - The number of distinct valuesnumberOfValues - The number of valuespublic boolean hasNativeImplementation()
MeasurehasNativeImplementation in interface MeasurehasNativeImplementation in class EmpiricalEntropy