Class TsDagToPag

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

public final class TsDagToPag extends Object
Finds the PAG to which a DAG belongs, for a time series model.
Version:
$Id: $Id
Author:
danielmalinsky
See Also:
  • Constructor Details

    • TsDagToPag

      public TsDagToPag(Graph dag)
      Constructs a new FCI search for the given independence test and background knowledge.
      Parameters:
      dag - a Graph object
  • Method Details

    • existsInducingPathInto

      public static boolean existsInducingPathInto(Node x, Node y, Graph graph, Knowledge knowledge)

      existsInducingPathInto.

      Parameters:
      x - a Node object
      y - a Node object
      graph - a Graph object
      knowledge - a Knowledge object
      Returns:
      a boolean
    • existsInducingPathVisitts

      public static boolean existsInducingPathVisitts(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge)

      existsInducingPathVisitts.

      Parameters:
      graph - a Graph object
      a - a Node object
      b - a Node object
      x - a Node object
      y - a Node object
      path - a LinkedList object
      knowledge - a Knowledge object
      Returns:
      a boolean
    • convert

      public Graph convert()

      convert.

      Returns:
      a Graph object
    • getKnowledge

      public Knowledge getKnowledge()

      Getter for the field knowledge.

      Returns:
      a Knowledge object
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)

      Setter for the field knowledge.

      Parameters:
      knowledge - a Knowledge object
    • isCompleteRuleSetUsed

      public boolean isCompleteRuleSetUsed()

      isCompleteRuleSetUsed.

      Returns:
      true if Zhang's complete rule set should be used, false if only R1-R4 (the rule set of the original FCI) should be used. False by default.
    • setCompleteRuleSetUsed

      public void setCompleteRuleSetUsed(boolean completeRuleSetUsed)

      Setter for the field completeRuleSetUsed.

      Parameters:
      completeRuleSetUsed - set to true if Zhang's complete rule set should be used, false if only R1-R4 (the rule set of the original FCI) should be used. False by default.
    • isVerbose

      public boolean isVerbose()
      True iff verbose output should be printed.
      Returns:
      a boolean
    • setVerbose

      public void setVerbose(boolean verbose)

      Setter for the field verbose.

      Parameters:
      verbose - a boolean
    • getMaxPathLength

      public int getMaxPathLength()

      Getter for the field maxPathLength.

      Returns:
      a int
    • setMaxPathLength

      public void setMaxPathLength(int maxPathLength)

      Setter for the field maxPathLength.

      Parameters:
      maxPathLength - a int
    • getTruePag

      public Graph getTruePag()

      Getter for the field truePag.

      Returns:
      a Graph object
    • setTruePag

      public void setTruePag(Graph truePag)

      Setter for the field truePag.

      Parameters:
      truePag - a Graph object
    • setDoDiscriminatingPathRule

      public void setDoDiscriminatingPathRule(boolean doDiscriminatingPathRule)

      Setter for the field doDiscriminatingPathRule.

      Parameters:
      doDiscriminatingPathRule - a boolean