public abstract class Entropy extends java.lang.Object implements Measure
Measure interface computes the joint entropy.ERROR_VALUE| Constructor and Description |
|---|
Entropy() |
| Modifier and Type | Method and Description |
|---|---|
double |
entropy(double[] x)
Compute the entropy of a vector of values (non missing values (NaN))
|
abstract 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
|
double |
jointEntropy(double[] x,
double[] y)
Compute the joint entropy of two vectors of values x,y (non missing values (NaN))
|
double |
measure(double[] a,
double[] b,
boolean[] computable)
Compute the measure between two data vectors
|
boolean |
requireDataTransformation()
Know if the measure need to transform input data (input data are copied to be preserved)
|
void |
transform(double[][] data)
The transformation method called before measurement
|
public abstract double entropy(double[] frequencies,
int distinctValues,
int numberOfValues)
frequencies - The occurrences array (of values)distinctValues - The number of distinct valuesnumberOfValues - The number of valuespublic double jointEntropy(double[] x,
double[] y)
x - The first vector of valuesy - The second vector of valuespublic double entropy(double[] x)
x - The vector of valuespublic double measure(double[] a,
double[] b,
boolean[] computable)
Measurepublic boolean hasNativeImplementation()
MeasurehasNativeImplementation in interface Measurepublic boolean requireDataTransformation()
MeasurerequireDataTransformation in interface Measure