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 booleanexistsInducingPathInto(Node x, Node y, Graph graph, Knowledge knowledge) existsInducingPathInto.static booleanexistsInducingPathVisitts(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge) existsInducingPathVisitts.Getter for the fieldknowledge.intGetter for the fieldmaxPathLength.Getter for the fieldtruePag.booleanisCompleteRuleSetUsed.booleanTrue iff verbose output should be printed.voidsetCompleteRuleSetUsed(boolean completeRuleSetUsed) Setter for the fieldcompleteRuleSetUsed.voidsetDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) Setter for the fielddoDiscriminatingPathRule.voidsetKnowledge(Knowledge knowledge) Setter for the fieldknowledge.voidsetMaxPathLength(int maxPathLength) Setter for the fieldmaxPathLength.voidsetTruePag(Graph truePag) Setter for the fieldtruePag.voidsetVerbose(boolean verbose) Setter for the fieldverbose.
-
Constructor Details
-
TsDagToPag
Constructs a new FCI search for the given independence test and background knowledge.- Parameters:
dag- aGraphobject
-
-
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
Graphobject
-
getKnowledge
Getter for the field
knowledge.- Returns:
- a
Knowledgeobject
-
setKnowledge
Setter for the field
knowledge.- Parameters:
knowledge- aKnowledgeobject
-
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
Graphobject
-
setTruePag
Setter for the field
truePag.- Parameters:
truePag- aGraphobject
-
setDoDiscriminatingPathRule
public void setDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) Setter for the field
doDiscriminatingPathRule.- Parameters:
doDiscriminatingPathRule- a boolean
-