|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.types.Tree cc.mallet.grmm.inference.JunctionTree
public class JunctionTree
Datastructure for a junction tree. Created: Tue Sep 30 10:30:25 2003
Constructor Summary | |
---|---|
JunctionTree(int size)
|
Method Summary | |
---|---|
void |
addNode(java.lang.Object parent1,
java.lang.Object child1)
|
java.util.Collection |
clusterPotentials()
Returns a collection of all the potentials of cliques in the junction tree. |
void |
compact()
|
void |
decompact()
|
void |
dump()
|
double |
dumpLogJoint(Assignment assn)
|
double |
entropy()
|
VarSet |
findCluster(Variable[] vars)
Returns a cluster in the tree that contains exactly the given variables, or null if no such cluster exists. |
VarSet |
findParentCluster(java.util.Collection vars)
Returns a cluster in the tree that contains all the vars in a collection. |
VarSet |
findParentCluster(Variable var)
Returns a cluster in the tree that contains var. |
Factor |
getCPF(VarSet c)
|
java.util.Set |
getSepset(VarSet v1,
VarSet v2)
|
Factor |
getSepsetPot(VarSet v1,
VarSet v2)
|
boolean |
isNaN()
|
double |
lookupLogJoint(Assignment assn)
|
Factor |
lookupMarginal(Variable var)
|
void |
normalizeAll()
Normalizes all potentials in the tree, both node and sepset. |
java.util.Set |
sepsetPotentials()
|
void |
setCPF(VarSet c,
Factor pot)
|
Methods inherited from class cc.mallet.grmm.types.Tree |
---|
add, containsObject, dumpToString, getChildren, getParent, getRoot, getVerticesIterator, isLeaf, isRoot, lookupIndex, lookupVertex, makeFromSubtree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JunctionTree(int size)
Method Detail |
---|
public void addNode(java.lang.Object parent1, java.lang.Object child1)
addNode
in class Tree
public Factor getCPF(VarSet c)
public void setCPF(VarSet c, Factor pot)
public java.util.Set sepsetPotentials()
public Factor getSepsetPot(VarSet v1, VarSet v2)
public java.util.Collection clusterPotentials()
sepsetPotentials()
public java.util.Set getSepset(VarSet v1, VarSet v2)
public Factor lookupMarginal(Variable var)
public double lookupLogJoint(Assignment assn)
public VarSet findParentCluster(Variable var)
public VarSet findParentCluster(java.util.Collection vars)
public VarSet findCluster(Variable[] vars)
public void normalizeAll()
public void dump()
public double dumpLogJoint(Assignment assn)
public boolean isNaN()
public double entropy()
public void decompact()
public void compact()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |