Package edu.cmu.tetrad.search.utils
Class TsDagToPag
java.lang.Object
edu.cmu.tetrad.search.utils.TsDagToPag
Finds the PAG to which a DAG belongs, for a time series model.
- Version:
- $Id: $Id
- Author:
- danielmalinsky
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTsDagToPag
(Graph dag) Constructs a new FCI search for the given independence test and background knowledge. -
Method Summary
Modifier and TypeMethodDescriptionconvert()
convert.static boolean
existsInducingPathInto
(Node x, Node y, Graph graph, Knowledge knowledge) existsInducingPathInto.static boolean
existsInducingPathVisitts
(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge) existsInducingPathVisitts.Getter for the fieldknowledge
.int
Getter for the fieldmaxPathLength
.Getter for the fieldtruePag
.boolean
isCompleteRuleSetUsed.boolean
True iff verbose output should be printed.void
setCompleteRuleSetUsed
(boolean completeRuleSetUsed) Setter for the fieldcompleteRuleSetUsed
.void
setDoDiscriminatingPathColliderRule
(boolean doDiscriminatingPathColliderRule) Sets whether the discriminating path collider rule should be used.void
setDoDiscriminatingPathTailRule
(boolean doDiscriminatingPathTailRule) /** Sets whether the discriminating path tail rule should be used.void
setKnowledge
(Knowledge knowledge) Setter for the fieldknowledge
.void
setMaxPathLength
(int maxPathLength) Sets the maximum length of any discriminating path.void
setTruePag
(Graph truePag) Setter for the fieldtruePag
.void
setVerbose
(boolean verbose) Setter for the fieldverbose
.
-
Constructor Details
-
TsDagToPag
Constructs a new FCI search for the given independence test and background knowledge.- Parameters:
dag
- aGraph
object
-
-
Method Details
-
existsInducingPathInto
existsInducingPathInto.
-
existsInducingPathVisitts
public static boolean existsInducingPathVisitts(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge) existsInducingPathVisitts.
-
convert
convert.
- Returns:
- a
Graph
object
-
getKnowledge
Getter for the field
knowledge
.- Returns:
- a
Knowledge
object
-
setKnowledge
Setter for the field
knowledge
.- Parameters:
knowledge
- aKnowledge
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) Sets the maximum length of any discriminating path.- Parameters:
maxPathLength
- the maximum length of any discriminating path, or -1 if unlimited.
-
getTruePag
Getter for the field
truePag
.- Returns:
- a
Graph
object
-
setTruePag
Setter for the field
truePag
.- Parameters:
truePag
- aGraph
object
-
setDoDiscriminatingPathTailRule
public void setDoDiscriminatingPathTailRule(boolean doDiscriminatingPathTailRule) /** Sets whether the discriminating path tail rule should be used.- Parameters:
doDiscriminatingPathTailRule
- True, if so.
-
setDoDiscriminatingPathColliderRule
public void setDoDiscriminatingPathColliderRule(boolean doDiscriminatingPathColliderRule) Sets whether the discriminating path collider rule should be used.- Parameters:
doDiscriminatingPathColliderRule
- True, if so.
-