Package org.drools.beliefs.bayes
Class JunctionTree
- java.lang.Object
-
- org.drools.beliefs.bayes.JunctionTree
-
- All Implemented Interfaces:
org.kie.api.internal.assembler.ProcessedResource
public class JunctionTree extends Object implements org.kie.api.internal.assembler.ProcessedResource
-
-
Constructor Summary
Constructors Constructor Description JunctionTree(Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps)JunctionTree(org.kie.api.io.Resource resource, String namespace, String name, Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps)JunctionTree(org.kie.api.io.Resource resource, String namespace, String name, Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps, boolean init)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph<BayesVariable>getGraph()JunctionTreeClique[]getJunctionTreeNodes()JunctionTreeSeparator[]getJunctionTreeSeparators()StringgetName()StringgetNamespace()org.kie.api.io.ResourcegetResource()JunctionTreeCliquegetRoot()voidmultipleVarNodePotential(GraphNode<BayesVariable> varNode, double[] potentials, BayesVariable[] vars, int[] multipliers)voidrecurseJTNodesAndInitialisePotentials(Graph graph, JunctionTreeClique jtNode)voidsetJunctionTreeNodes(JunctionTreeClique[] jtNodes)
-
-
-
Constructor Detail
-
JunctionTree
public JunctionTree(Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps)
-
JunctionTree
public JunctionTree(org.kie.api.io.Resource resource, String namespace, String name, Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps)
-
JunctionTree
public JunctionTree(org.kie.api.io.Resource resource, String namespace, String name, Graph<BayesVariable> graph, JunctionTreeClique root, JunctionTreeClique[] jtNodes, JunctionTreeSeparator[] jtSeps, boolean init)
-
-
Method Detail
-
getGraph
public Graph<BayesVariable> getGraph()
-
getRoot
public JunctionTreeClique getRoot()
-
recurseJTNodesAndInitialisePotentials
public void recurseJTNodesAndInitialisePotentials(Graph graph, JunctionTreeClique jtNode)
-
multipleVarNodePotential
public void multipleVarNodePotential(GraphNode<BayesVariable> varNode, double[] potentials, BayesVariable[] vars, int[] multipliers)
-
getJunctionTreeNodes
public JunctionTreeClique[] getJunctionTreeNodes()
-
getJunctionTreeSeparators
public JunctionTreeSeparator[] getJunctionTreeSeparators()
-
setJunctionTreeNodes
public void setJunctionTreeNodes(JunctionTreeClique[] jtNodes)
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceorg.kie.api.internal.assembler.ProcessedResource
-
getResource
public org.kie.api.io.Resource getResource()
- Specified by:
getResourcein interfaceorg.kie.api.internal.assembler.ProcessedResource
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.kie.api.internal.assembler.ProcessedResource
-
-