|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulb.mlg.utils.measure.MutualInformation
public class MutualInformation
Mutual information that use the entropy formula: I(X,Y) = H(X) - H(X|Y) = H(Y) - H(Y|X) = H(X) + H(Y) - H(X,Y)
Field Summary |
---|
Fields inherited from interface be.ac.ulb.mlg.utils.Measure |
---|
ERROR_VALUE |
Constructor Summary | |
---|---|
MutualInformation()
The default constructor that uses the EmpiricalEntropy entropy estimator and no Discretizer |
|
MutualInformation(Discretizer discretizer)
The default constructor that uses the EmpiricalEntropy entropy estimator |
|
MutualInformation(Entropy entropyEstimator)
Constructor that uses the parameter entropy estimator and no discretizer |
|
MutualInformation(Entropy entropyEstimator,
Discretizer discretizer)
Constructor that uses the parameter entropy estimator |
Method Summary | |
---|---|
boolean |
hasNativeImplementation()
Know if the measure owns a native implementation |
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 MutualInformation()
EmpiricalEntropy
entropy estimator and no Discretizer
public MutualInformation(Discretizer discretizer)
EmpiricalEntropy
entropy estimator
discretizer
- The discretrization methodpublic MutualInformation(Entropy entropyEstimator)
entropyEstimator
- The entropy estimatorpublic MutualInformation(Entropy entropyEstimator, Discretizer discretizer)
entropyEstimator
- The entropy estimatorMethod Detail |
---|
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 |