|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.types.FactorGraph cc.mallet.grmm.types.DirectedModel
public class DirectedModel
Class for directed graphical models. This is just a souped-up Graph. Created: Mon Sep 15 14:50:19 2003
Constructor Summary | |
---|---|
DirectedModel()
|
|
DirectedModel(int capacity)
|
|
DirectedModel(Variable[] vars)
|
Method Summary | |
---|---|
protected void |
afterFactorAdd(Factor factor)
Performs operations on a factor after it has been added to the model, such as caching. |
protected void |
beforeFactorAdd(Factor factor)
Performs checking of a factor before it is added to the model. |
CPT |
getCptofVar(Variable node)
Returns the conditional distribution P ( node | Parents (node) ) |
Methods inherited from class cc.mallet.grmm.types.FactorGraph |
---|
addFactor, addFactor, allFactorsContaining, allFactorsContaining, allFactorsOf, allFactorsOf, almostEquals, almostEquals, argmax, assignmentIterator, asTable, clear, containsVar, divideBy, dump, dump, dumpToString, duplicate, entropy, exponentiate, extractMax, extractMax, extractMax, factorOf, factorOf, factorOf, factorOf, factorProduct, factors, factorsIterator, findVariable, get, getAdjacentVertices, getDegree, getFactor, getIndex, getIndex, getInferenceCache, getVariable, isAdjacent, isNaN, logify, logValue, logValue, logValue, marginalize, marginalize, marginalize, marginalizeOut, marginalizeOut, multiply, multiplyBy, normalize, numVariables, prettyOutputString, printAsDot, printAsDot, remove, remove, sample, sampleContinuousVars, setInferenceCache, slice, slice, sum, toString, value, value, variablesIterator, variablesSet, varSet, varSetIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectedModel()
public DirectedModel(Variable[] vars)
public DirectedModel(int capacity)
Method Detail |
---|
protected void beforeFactorAdd(Factor factor)
FactorGraph
beforeFactorAdd
in class FactorGraph
factor
- Factor that is about to be addedprotected void afterFactorAdd(Factor factor)
FactorGraph
afterFactorAdd
in class FactorGraph
factor
- Factor that has just been addedpublic CPT getCptofVar(Variable node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |