Class CausalNode


  • public final class CausalNode
    extends Object
    Represents a reference to any node in a Causal model, for example a treatment (X), an outcome (Y), an unobserved node (U).
    • Constructor Detail

      • CausalNode

        public CausalNode​(Node node)
        Initializes a new instance of the CausalNode class.
        Parameters:
        node - The node in a Bayesian network.
      • CausalNode

        public CausalNode​(Node node,
                          Integer time)
        Initializes a new instance of the CausalNode class.
        Parameters:
        node - The node in a Bayesian network.
        time - Optional time, required when a node is temporal.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getNode

        public Node getNode()
        Gets the Bayesian network node.
      • getTime

        public Integer getTime()
        Gets the optional time, required for temporal nodes.