Class IndTestSepsetDci

java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestSepsetDci
All Implemented Interfaces:
IndependenceTest

public class IndTestSepsetDci extends Object implements IndependenceTest
Checks independence facts for variables associated with a sepset by simply querying the sepset
Version:
$Id: $Id
Author:
Robert Tillman
  • Constructor Details

    • IndTestSepsetDci

      public IndTestSepsetDci(SepsetMapDci sepset, List<Node> nodes)
      Constructs a new independence test that returns d-separation facts for the given graph as independence results.
      Parameters:
      sepset - a SepsetMapDci object
      nodes - a List object
  • Method Details

    • indTestSubset

      public IndependenceTest indTestSubset(List<Node> vars)
      Returns an Independence test for a sublist of the variables.

      Required by IndependenceTest.

      Specified by:
      indTestSubset in interface IndependenceTest
      Parameters:
      vars - The sublist of variables.
      Returns:
      a IndependenceTest object
    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z)

      checkIndependence.

      Checks the indicated independence fact.

      Specified by:
      checkIndependence in interface IndependenceTest
      Parameters:
      x - a Node object
      y - a Node object
      z - a Set object
      Returns:
      a IndependenceResult object
      See Also:
    • getPValue

      public double getPValue()
      Needed for IndependenceTest interface. P value is not meaningful here.
      Returns:
      a double
    • getVariables

      public List<Node> getVariables()

      getVariables.

      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      the list of TetradNodes over which this independence checker is capable of determinine independence relations-- that is, all the variables in the given graph or the given data set.
    • determines

      public boolean determines(List<Node> z, Node x1)
    • getAlpha

      public double getAlpha()

      getAlpha.

      Specified by:
      getAlpha in interface IndependenceTest
      Returns:
      a double
    • setAlpha

      public void setAlpha(double alpha)
      Sets the significance level.
      Specified by:
      setAlpha in interface IndependenceTest
      Parameters:
      alpha - This level.
    • getVariable

      public Node getVariable(String name)
      Returns The variable by the given name.
      Specified by:
      getVariable in interface IndependenceTest
      Parameters:
      name - a String object
      Returns:
      This variable.
    • getVariable

      public Node getVariable(Node node)

      getVariable.

      Parameters:
      node - a Node object
      Returns:
      the variable associated with the given node in the graph.
    • getNode

      public Node getNode(Node variable)

      getNode.

      Parameters:
      variable - a Node object
      Returns:
      the node associated with the given variable in the graph.
    • toString

      public String toString()

      toString.

      Specified by:
      toString in interface IndependenceTest
      Overrides:
      toString in class Object
      Returns:
      a String object
    • getData

      public DataSet getData()

      getData.

      Specified by:
      getData in interface IndependenceTest
      Returns:
      a DataSet object
      See Also:
    • isVerbose

      public boolean isVerbose()

      isVerbose.

      Specified by:
      isVerbose in interface IndependenceTest
      Returns:
      a boolean
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether this test will print verbose output.
      Specified by:
      setVerbose in interface IndependenceTest
      Parameters:
      verbose - True, if so.