Class Tetrad

java.lang.Object
edu.cmu.tetrad.search.utils.Tetrad

public class Tetrad extends Object
Represents a ordered tetrad of variables, (i, j, k, l).
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Details

    • Tetrad

      public Tetrad(Node i, Node j, Node k, Node l)

      Constructor for Tetrad.

      Parameters:
      i - a Node object
      j - a Node object
      k - a Node object
      l - a Node object
    • Tetrad

      public Tetrad(Node i, Node j, Node k, Node l, double pValue)

      Constructor for Tetrad.

      Parameters:
      i - a Node object
      j - a Node object
      k - a Node object
      l - a Node object
      pValue - a double
  • Method Details

    • getI

      public Node getI()

      Getter for the field i.

      Returns:
      a Node object
    • getJ

      public Node getJ()

      Getter for the field j.

      Returns:
      a Node object
    • getK

      public Node getK()

      Getter for the field k.

      Returns:
      a Node object
    • getL

      public Node getL()

      Getter for the field l.

      Returns:
      a Node object
    • hashCode

      public int hashCode()

      hashCode.

      Overrides:
      hashCode in class Object
      Returns:
      a int
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()

      toString.

      Overrides:
      toString in class Object
      Returns:
      a String object
    • getPValue

      public double getPValue()

      Getter for the field pValue.

      Returns:
      a double
    • getNodes

      public Set<Node> getNodes()

      getNodes.

      Returns:
      a Set object