Classes
The following classes are available globally.
-
Instances of the
See moreClass
class represent object-oriented Bayesian networks and LIMIDs. Such an instance can contain nodes representing instances of other network classes and so on. To use an instance (i.e., propagate evidence and calculate updated beliefs and expected utilities), it must first be unfolded to a plain Bayesian network or LIMID. TheDomain.init(Class)
andDomain.init(Class,Int)
methods handle this.Declaration
Swift
public class Class : Network
-
Classes are grouped into
ClassCollection
s. Each class must belong to exactly oneClassCollection
. AClassCollection
can be considered a closed world of interdependent classes (i.e., Bayesian networks and LIMIDs). That is, each class may contain instances of other classes of theClassCollection
, but not of classes of otherClassCollection
s.
See moreClassCollection
objects are automatically deallocated when the last reference to the object disappears. When this happens, all objects “owned” by theClassCollection
object (such as member classes and nodes in those classes) are deleted, so make sure to hold on to theClassCollection
object until it is no longer needed.Declaration
Swift
public class ClassCollection
-
Represents the cliques of a JunctionTree.
See moreDeclaration
Swift
public class Clique
-
The
See moreDataSet
class. This class represents a data set as a “matrix” with cases as rows and variables as columns.Declaration
Swift
public class DataSet
-
Instances of the
Domain
class represent Bayesian networks and LIMIDs in which you can propagate evidence and calculate updated beliefs and expected utilities.
See moreDomain
objects are automatically deallocated when the last reference to the object disappears. When this happens, all objects “owned” by theDomain
object (such asNode
objects) are deleted, so make sure to hold on to theDomain
object until it is no longer needed.Declaration
Swift
public class Domain : Network
-
Thic class represents the junction trees of a compiled domain.
See moreDeclaration
Swift
public class JunctionTree
-
The
See moreLicense
class. This class represents license information. ALicense
object can be passed to (some)Domain
andClassCollection
initializers in order to verify the license. Alternatively, the license information can be retrieved from a file.Declaration
Swift
public class License
-
A
See moreModel
is a compact description of a table. A model consists of a list of discrete nodes and a set of expressions (one expression per configuration of states of the nodes.Declaration
Swift
public class Model
-
Hugin uses
Table
s for representing the conditional probability and utility potentials of individual Nodes, the probability and utility potentials on separators and Cliques of JunctionTrees, evidence potentials, etc.A potential is a function from the state space of a set of variables into the set of real numbers. A
See moreTable
is a representation of a potential.Declaration
Swift
public class Table