Class CompositeIndependenceTest

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

public class CompositeIndependenceTest extends Object implements IndependenceTest

CompositeIndependenceTest class.

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

    • CompositeIndependenceTest

      public CompositeIndependenceTest(IndependenceTest[] independenceTests)

      Constructor for CompositeIndependenceTest.

      Parameters:
      independenceTests - an array of IndependenceTest objects
  • Method Details

    • checkIndependence

      public IndependenceResult checkIndependence(Node x, Node y, Set<Node> z)
      Checks the independence between two variables x and y given a conditioning set z.
      Specified by:
      checkIndependence in interface IndependenceTest
      Parameters:
      x - The first variable to test, represented as a Node object.
      y - The second variable to test, represented as a Node object.
      z - The set of conditioning variables, represented as a Set of Node objects.
      Returns:
      An IndependenceResult object representing the outcome of the independence test.
    • getVariables

      public List<Node> getVariables()
      Retrieves the list of variables associated with this independence test.
      Specified by:
      getVariables in interface IndependenceTest
      Returns:
      A list of Node objects representing the variables.
    • getData

      public DataModel getData()
      Retrieves the data model associated with this test.
      Specified by:
      getData in interface IndependenceTest
      Returns:
      A DataModel object representing the data model.
    • isVerbose

      public boolean isVerbose()
      Returns true if the test prints verbose output.
      Specified by:
      isVerbose in interface IndependenceTest
      Returns:
      True if the case.
    • 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.