Class SepsetsSet

java.lang.Object
edu.cmu.tetrad.search.utils.SepsetsSet
All Implemented Interfaces:
SepsetProducer

public class SepsetsSet extends Object implements SepsetProducer

Provides a sepset producer using conditional independence tests to generate the Sepset map.

Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

  • Method Details

    • getSepset

      public Set<Node> getSepset(Node a, Node b)
      Retrieves the sepset between two nodes.
      Specified by:
      getSepset in interface SepsetProducer
      Parameters:
      a - the first node
      b - the second node
      Returns:
      the set of nodes in the sepset between a and b
    • getSepsetContaining

      public Set<Node> getSepsetContaining(Node a, Node b, Set<Node> s)
      Retrieves the sepset for a and b, where we are expecting this sepset to contain all the nodes in s.
      Specified by:
      getSepsetContaining in interface SepsetProducer
      Parameters:
      a - the first node
      b - the second node
      s - the set of nodes to check in the sepset of a and b
      Returns:
      the set of nodes that the sepset of a and b is expected to contain.
      Throws:
      IllegalArgumentException - if the sepset of a and b does not contain all the nodes in s
    • getPValue

      public double getPValue(Node a, Node b, Set<Node> sepset)
      Description copied from interface: SepsetProducer
      Calculates the p-value for a statistical test a _||_ b | sepset.
      Specified by:
      getPValue in interface SepsetProducer
      Parameters:
      a - the first node
      b - the second node
      sepset - the set of nodes
      Returns:
      the p-value for the statistical test
      Throws:
      UnsupportedOperationException - if this method is called
    • isUnshieldedCollider

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

      isUnshieldedCollider.

      Specified by:
      isUnshieldedCollider in interface SepsetProducer
      Parameters:
      i - a Node object
      j - a Node object
      k - a Node object
      Returns:
      a boolean
    • isIndependent

      public boolean isIndependent(Node a, Node b, Set<Node> sepset)

      isIndependent.

      Specified by:
      isIndependent in interface SepsetProducer
      Parameters:
      a - a Node object
      b - a Node object
      sepset - a Set object
      Returns:
      a boolean
    • getScore

      public double getScore()

      getScore.

      Specified by:
      getScore in interface SepsetProducer
      Returns:
      a double
    • getVariables

      public List<Node> getVariables()

      getVariables.

      Specified by:
      getVariables in interface SepsetProducer
      Returns:
      a List object
    • isVerbose

      public boolean isVerbose()

      isVerbose.

      Returns:
      a boolean
    • setVerbose

      public void setVerbose(boolean verbose)

      setVerbose.

      Specified by:
      setVerbose in interface SepsetProducer
      Parameters:
      verbose - a boolean