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.
-
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
setDoDiscriminatingPathRule
(boolean doDiscriminatingPathRule) Setter for the fielddoDiscriminatingPathRule
.void
setKnowledge
(Knowledge knowledge) Setter for the fieldknowledge
.void
setMaxPathLength
(int maxPathLength) Setter for the fieldmaxPathLength
.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) Setter for the field
maxPathLength
.- Parameters:
maxPathLength
- a int
-
getTruePag
Getter for the field
truePag
.- Returns:
- a
Graph
object
-
setTruePag
Setter for the field
truePag
.- Parameters:
truePag
- aGraph
object
-
setDoDiscriminatingPathRule
public void setDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) Setter for the field
doDiscriminatingPathRule
.- Parameters:
doDiscriminatingPathRule
- a boolean
-