|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.util.CondMutualInfo
Estimate a joint probability distribution of three discreate variables
Constructor Summary | |
CondMutualInfo(FrequencyCalc fc)
Constructor for the CondMutualInfo object |
Method Summary | |
double[][] |
get(boolean[] cond,
boolean usePriors,
double alphaK)
Return conditional mutual information matrix I. |
double[][] |
getProbX()
Return copy of mariginal probability of class variable, p(X). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CondMutualInfo(FrequencyCalc fc)
fc
- Description of ParameterMethod Detail |
public double[][] get(boolean[] cond, boolean usePriors, double alphaK) throws java.lang.Exception
___ \ p(x,y|z) I(X;Y|Z) = /__ p(x,y,z) log --------------- x,y p(x|z) p(y|z)When only one variable, say X, is conditioned on Z:
___ \ p(x,y|z) I(X;Y|Z) = /__ p(x,y,z) log ------------- x,y p(x|z) p(y)When neither variable is conditioned on Z:
___ \ p(x,y) I(X;Y) = /__ p(x,y) log ----------- x,y p(x) p(y)
cond
- weather a variable with corresponding index is
conditioned on the class variable (Z).usePriors
- Description of ParameteralphaK
- Description of Parameter
java.lang.Exception
- Description of Exceptionpublic double[][] getProbX() throws java.lang.Exception
java.lang.Exception
- Not initialized.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |