|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JavaMI.MutualInformation
public abstract class MutualInformation
Implements common discrete Mutual Information functions. Provides: Mutual Information I(X;Y), Conditional Mutual Information I(X,Y|Z). Defaults to log_2, and so the entropy is calculated in bits.
Method Summary | |
---|---|
static double |
calculateConditionalMutualInformation(double[] firstVector,
double[] secondVector,
double[] conditionVector)
Calculates the conditional Mutual Information I(X;Y|Z) between two random variables, conditioned on a third. |
static double |
calculateMutualInformation(double[] firstVector,
double[] secondVector)
Calculates the Mutual Information I(X;Y) between two random variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double calculateMutualInformation(double[] firstVector, double[] secondVector)
firstVector
- Input vector (X). It is discretised to the floor of each value before calculation.secondVector
- Input vector (Y). It is discretised to the floor of each value before calculation.
public static double calculateConditionalMutualInformation(double[] firstVector, double[] secondVector, double[] conditionVector)
firstVector
- Input vector (X). It is discretised to the floor of each value before calculation.secondVector
- Input vector (Y). It is discretised to the floor of each value before calculation.conditionVector
- Input vector (Z). It is discretised to the floor of each value before calculation.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |