|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulb.mlg.utils.measure.Entropy
public abstract class Entropy
Abstract class of entropy that need to use an estimator.
The measure function of the Measure
interface computes the joint entropy.
Field Summary |
---|
Fields inherited from interface be.ac.ulb.mlg.utils.Measure |
---|
ERROR_VALUE |
Constructor Summary | |
---|---|
Entropy()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entropy()
Method Detail |
---|
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 values
public double jointEntropy(double[] x, double[] y)
x
- The first vector of valuesy
- The second vector of values
public double entropy(double[] x)
x
- The vector of values
public double measure(double[] a, double[] b, boolean[] computable)
Measure
measure
in interface Measure
a
- The first data vectorb
- The second data vectorcomputable
- Boolean vector set to true except for indexes they must be ignored during the measurement
public boolean hasNativeImplementation()
Measure
hasNativeImplementation
in interface Measure
public boolean requireDataTransformation()
Measure
requireDataTransformation
in interface Measure
public void transform(double[][] data)
Measure
transform
in interface Measure
data
- An input data vector to be measured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |