|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.inference.MessageArray
public class MessageArray
Efficiently manages a array of messages in a factor graph from variables to factors and vice versa. Created: Feb 1, 2006
Nested Class Summary | |
---|---|
class |
MessageArray.Iterator
|
static class |
MessageArray.ToMsgsIterator
|
Constructor Summary | |
---|---|
MessageArray(FactorGraph fg)
|
Method Summary | |
---|---|
MIntInt2ObjectMap |
deepCopy(MIntInt2ObjectMap msgs)
|
void |
dump()
|
void |
dump(java.io.PrintWriter out)
|
MessageArray |
duplicate()
|
Factor |
get(Factor from,
Variable to)
|
Factor |
get(java.lang.Object from,
java.lang.Object to)
|
Factor |
get(Variable from,
Factor to)
|
int |
getIndex(Factor from)
|
int |
getIndex(Variable to)
|
java.lang.Object |
idx2obj(int idx)
|
boolean |
isInLogSpace()
|
MessageArray.Iterator |
iterator()
|
void |
put(Factor from,
Variable to,
Factor msg)
|
void |
put(int fromIdx,
int toIdx,
Factor msg)
|
void |
put(Variable from,
Factor to,
Factor msg)
|
MessageArray.ToMsgsIterator |
toMessagesIterator(int toIdx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageArray(FactorGraph fg)
Method Detail |
---|
public boolean isInLogSpace()
public Factor get(java.lang.Object from, java.lang.Object to)
public Factor get(Variable from, Factor to)
public Factor get(Factor from, Variable to)
public void put(Factor from, Variable to, Factor msg)
public void put(Variable from, Factor to, Factor msg)
public void put(int fromIdx, int toIdx, Factor msg)
public MessageArray.Iterator iterator()
public MessageArray.ToMsgsIterator toMessagesIterator(int toIdx)
public MessageArray duplicate()
public MIntInt2ObjectMap deepCopy(MIntInt2ObjectMap msgs)
public int getIndex(Factor from)
public int getIndex(Variable to)
public java.lang.Object idx2obj(int idx)
public void dump()
public void dump(java.io.PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |