Interface SepsetProducer

All Known Implementing Classes:
DagSepsets, SepsetsGreedy, SepsetsMaxP, SepsetsMinP, SepsetsPossibleMsep, SepsetsSet

public interface SepsetProducer
Provides a covenience interface for classes that can generate and keep track of sepsets.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Method Details

    • getSepset

      Set<Node> getSepset(Node a, Node b)

      getSepset.

      Parameters:
      a - a Node object
      b - a Node object
      Returns:
      a Set object
    • getSepsetContaining

      Set<Node> getSepsetContaining(Node a, Node b, Set<Node> s)
      Returns the subset for a and b, where this sepset is expected to contain all the nodes in s. The behavior is morphed depending on whether sepsets are calculated using an independence test or not. If sepsets are calculated using an independence test, and a sepset is not found containing all the nodes in s, then the method will return null. Otherwise, if the discovered sepset does not contain all the nodes in s, the method will throw an exception.
      Parameters:
      a - the first node
      b - the second node
      s - the set of nodes
      Returns:
      the set of nodes that sepsets for a and b are expected to contain.
    • isUnshieldedCollider

      boolean isUnshieldedCollider(Node i, Node j, Node k)

      isUnshieldedCollider.

      Parameters:
      i - a Node object
      j - a Node object
      k - a Node object
      Returns:
      a boolean
    • getScore

      double getScore()

      getScore.

      Returns:
      a double
    • getVariables

      List<Node> getVariables()

      getVariables.

      Returns:
      a List object
    • setVerbose

      void setVerbose(boolean verbose)

      setVerbose.

      Parameters:
      verbose - a boolean
    • isIndependent

      boolean isIndependent(Node d, Node c, Set<Node> sepset)

      isIndependent.

      Parameters:
      d - a Node object
      c - a Node object
      sepset - a Set object
      Returns:
      a boolean
    • getPValue

      double getPValue(Node a, Node b, Set<Node> sepset)
      Calculates the p-value for a statistical test a _||_ b | sepset.
      Parameters:
      a - the first node
      b - the second node
      sepset - the set of nodes
      Returns:
      the p-value for the statistical test