edu.duke.cs.banjo.bayesnet
Interface EdgesI
- All Known Subinterfaces:
- EdgesWithCachedStatisticsI
- All Known Implementing Classes:
- EdgesAsArray, EdgesAsArrayWithCachedStatistics, EdgesAsMatrix, EdgesAsMatrixWithCachedStatistics
- public interface EdgesI
Documents the interface for creating an Edges implementation.
Details:
Change History:
Created on Feb 21, 2005
hjs (v2.0) Remove the method int[][][] getMatrix(), which should never have
been part of the interface.
- Author:
- Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.
assignMatrix
public void assignMatrix(EdgesI edges)
throws java.lang.Exception
- Returns:
- Returns the matrix.
Note: this breaks with clean object-oriented design, but it allows
us to squeeze a lot of performance from the code. Use this method
only where absolutely necessary, since it ties your code to a matrix-
based implementation.
- Throws:
java.lang.Exception
getEntry
public int getEntry(int varIndex,
int parentVarIndex,
int lag)
setEntry
public void setEntry(int varIndex,
int parentVarIndex,
int lag,
int newValue)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasIdenticalEntries
public boolean hasIdenticalEntries(EdgesI otherEdges)
clone
public java.lang.Object clone()