类 MarginCalculator
java.lang.Object
weka.classifiers.bayes.net.MarginCalculator
- 所有已实现的接口:
Serializable
,RevisionHandler
- 另请参阅:
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
calcFullMargins
(BayesNet bayesNet) void
calcMargins
(BayesNet bayesNet) Calc marginal distributions of nodes in Bayesian network Note that a connected network is assumed.boolean[][]
fillIn
(int[] order, boolean[][] bAdjacencyMatrix) Apply Tarjan and Yannakakis (1984) fill in algorithm for graph triangulation.double[]
getMargin
(int iNode) int
Returns the revision string.static void
boolean[][]
moralize DAG and calculate adjacency matrix representation for a Bayes Network, effecively converting the directed acyclic graph to an undirected graph.void
void
setEvidence
(int nNode, int iValue) toString()
-
字段详细资料
-
m_root
-
-
构造器详细资料
-
MarginCalculator
public MarginCalculator()
-
-
方法详细资料
-
getNode
-
toXMLBIF03
-
calcMargins
Calc marginal distributions of nodes in Bayesian network Note that a connected network is assumed. Unconnected networks may give unexpected results.- 参数:
bayesNet
-- 抛出:
Exception
-
calcFullMargins
- 抛出:
Exception
-
process
- 抛出:
Exception
-
moralize
moralize DAG and calculate adjacency matrix representation for a Bayes Network, effecively converting the directed acyclic graph to an undirected graph.- 参数:
bayesNet
- : Bayes Network to process- 返回:
- adjacencies in boolean matrix format
-
fillIn
public boolean[][] fillIn(int[] order, boolean[][] bAdjacencyMatrix) Apply Tarjan and Yannakakis (1984) fill in algorithm for graph triangulation. In reverse order, insert edges between any non-adjacent neighbors that are lower numbered in the ordering. Side effect: input matrix is used as output- 参数:
order
- : node orderingbAdjacencyMatrix
- : boolean matrix representing the graph- 返回:
- boolean matrix representing the graph with fill ins
-
setEvidence
- 抛出:
Exception
-
toString
-
getMargin
public double[] getMargin(int iNode) -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
-