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, int depth)
      Retrieves the sepset, which is the set of common neighbors between two given nodes.
      Parameters:
      a - the first node
      b - the second node
      depth - the depth of the search
      Returns:
      the set of common neighbors between nodes a and b
    • getSepsetContaining

      Set<Node> getSepsetContaining(Node a, Node b, Set<Node> s, int depth)
      Retrieves a sepset containing nodes in s from the given set of nodes.
      Parameters:
      a - the first node
      b - the second node
      s - the set of nodes
      depth - the depth of the search
      Returns:
      the sepset containing nodes a and b from the given set of nodes
    • isUnshieldedCollider

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

      isUnshieldedCollider.

      Parameters:
      i - a Node object
      j - a Node object
      k - a Node object
      depth - the depth of the search
      Returns:
      a boolean
    • getScore

      double getScore()
      Returns the score of the object.
      Returns:
      the score value
    • getVariables

      List<Node> getVariables()
      Retrieves the list of variables.
      Returns:
      the list of variables as a List of Node objects.
    • setVerbose

      void setVerbose(boolean verbose)
      Sets the verbose mode of the SepsetProducer.
      Parameters:
      verbose - true if verbose mode is enabled, false otherwise
    • isIndependent

      boolean isIndependent(Node d, Node c, Set<Node> sepset)
      Checks if node d is independent of node c given the set of nodes in sepset.
      Parameters:
      d - the first node
      c - the second node
      sepset - the set of common neighbors between d and c
      Returns:
      true if d is independent of c, false otherwise
    • 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
    • setGraph

      void setGraph(Graph graph)
      Sets the graph for the SepsetProducer object.
      Parameters:
      graph - the graph to set