Classes

The following classes are available globally.

  • Instances of the Class 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. The Domain.init(Class) and Domain.init(Class,Int) methods handle this.

    See more

    Declaration

    Swift

    public class Class : Network
  • Classes are grouped into ClassCollections. Each class must belong to exactly one ClassCollection. A ClassCollection 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 the ClassCollection, but not of classes of other ClassCollections.

    ClassCollection objects are automatically deallocated when the last reference to the object disappears. When this happens, all objects “owned” by the ClassCollection object (such as member classes and nodes in those classes) are deleted, so make sure to hold on to the ClassCollection object until it is no longer needed.

    See more

    Declaration

    Swift

    public class ClassCollection
  • Represents the cliques of a JunctionTree.

    See more

    Declaration

    Swift

    public class Clique
  • The DataSet class. This class represents a data set as a “matrix” with cases as rows and variables as columns.

    See more

    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.

    Domain objects are automatically deallocated when the last reference to the object disappears. When this happens, all objects “owned” by the Domain object (such as Node objects) are deleted, so make sure to hold on to the Domain object until it is no longer needed.

    See more

    Declaration

    Swift

    public class Domain : Network
  • Thic class represents the junction trees of a compiled domain.

    See more

    Declaration

    Swift

    public class JunctionTree
  • The License class. This class represents license information. A License object can be passed to (some) Domain and ClassCollection initializers in order to verify the license. Alternatively, the license information can be retrieved from a file.

    See more

    Declaration

    Swift

    public class License
  • A Model 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.

    See more

    Declaration

    Swift

    public class Model
  • The Network class is an abstract class with two subclasses: Domain and Class.

    See more

    Declaration

    Swift

    public class Network : Hashable
  • Nodes are one of the fundamental objects used in the construction of Bayesian networks and LIMIDs. All nodes need a Network (i.e., a Class or a Domain); that is, the network must exist before its nodes can be created.

    See more

    Declaration

    Swift

    public class Node : Hashable
  • Hugin uses Tables 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 Table is a representation of a potential.

    See more

    Declaration

    Swift

    public class Table