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
Retrieves the maximum length of any discriminating path.Getter for the fieldtruePag
.boolean
isCompleteRuleSetUsed.boolean
True iff verbose output should be printed.void
setCompleteRuleSetUsed
(boolean completeRuleSetUsed) Setter for the fieldcompleteRuleSetUsed
.void
setKnowledge
(Knowledge knowledge) Setter for the fieldknowledge
.void
setMaxDiscriminatingPathLength
(int maxDiscriminatingPathLength) 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
-
-
Method Details
-
existsInducingPathInto
-
existsInducingPathVisitts
-
convert
-
getKnowledge
-
setKnowledge
-
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
-
getMaxDiscriminatingPathLength
public int getMaxDiscriminatingPathLength()Retrieves the maximum length of any discriminating path.- Returns:
- the maximum length of any discriminating path
-
setMaxDiscriminatingPathLength
public void setMaxDiscriminatingPathLength(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.- Parameters:
maxDiscriminatingPathLength
- the maximum length of any discriminating path, or -1 if unlimited.
-
getTruePag
-
setTruePag
-