JunctionTree
public class JunctionTree
Thic class represents the junction trees of a compiled domain.
-
Is this JunctionTree object alive?
Declaration
Swift
public func isAlive() -> Bool -
Returns the cliques of this JunctionTree.
Declaration
Swift
public func getCliques() throws -> [Clique] -
Returns the root clique of this JunctionTree.
Declaration
Swift
public func getRoot() throws -> CliqueReturn Value
A Clique.
-
Returns the total number of discrete table configurations for this JunctionTree. Both clique and separator table configurations are counted. Also, if the junction tree has utility potentials, then the clique and separator configurations will effectively be counted twice.
Declaration
Swift
public func getTotalSize() throws -> Int -
Returns the total number of CG table entries for this JunctionTree. Both clique and separator table entries are counted.
Declaration
Swift
public func getTotalCGSize() throws -> Int -
Returns the conflict measure of the data inserted in this JunctionTree.
Declaration
Swift
public func getConflict() throws -> DoubleReturn Value
A double.
-
Tests the Equilibrium type. Returns
trueif the equilibrium of this JunctionTree can be obtained through a propagation usingequilibriumas the Equilibrium type; otherwise, returnsfalse.Declaration
Swift
public func equilibriumIs(_ equilibrium: Domain.Equilibrium) throws -> BoolParameters
equilibriumthe type of Equilibrium to test for.
-
Returns
trueif the EvidenceMode matchesmode; otherwise, returnsfalse.Declaration
Swift
public func evidenceModeIs(_ mode: Domain.EvidenceMode) throws -> BoolParameters
modethe type of EvidenceMode to test for.
-
Returns
trueif evidence has been propagated in this JunctionTree; otherwise, returnsfalse.Declaration
Swift
public func evidenceIsPropagated() throws -> Bool -
Returns
trueif likelihoods have been propagated in this JunctionTree; otherwise, returnsfalse.Declaration
Swift
public func likelihoodIsPropagated() throws -> Bool -
Returns
trueif CG evidence has been propagated in this JunctionTree; otherwise, returnsfalse.Declaration
Swift
public func cgEvidenceIsPropagated() throws -> Bool -
Returns
trueif the JunctionTree contains evidence that has not been propagated; otherwise, returnsfalse.Declaration
Swift
public func evidenceToPropagate() throws -> Bool -
Returns
trueif this JunctionTree contains updated tables that have not been propagated; otherwise, returnsfalse.Declaration
Swift
public func tablesToPropagate() throws -> Bool
JunctionTree Class Reference