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()static booleanexistsInducingPathInto(Node x, Node y, Graph graph, Knowledge knowledge) static booleanexistsInducingPathVisitts(Graph graph, Node a, Node b, Node x, Node y, LinkedList<Node> path, Knowledge knowledge) intbooleanbooleanTrue iff verbose output should be printed.voidsetCompleteRuleSetUsed(boolean completeRuleSetUsed) voidsetDoDiscriminatingPathRule(boolean doDiscriminatingPathRule) voidsetKnowledge(Knowledge knowledge) voidsetMaxPathLength(int maxPathLength) voidsetTruePag(Graph truePag) voidsetVerbose(boolean verbose)
-
Constructor Details
-
TsDagToPag
Constructs a new FCI search for the given independence test and background knowledge.
-
-
Method Details
-
existsInducingPathInto
-
existsInducingPathVisitts
-
convert
-
getKnowledge
-
setKnowledge
-
isCompleteRuleSetUsed
public boolean 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) - 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. -
setVerbose
public void setVerbose(boolean verbose) -
getMaxPathLength
public int getMaxPathLength() -
setMaxPathLength
public void setMaxPathLength(int maxPathLength) -
getTruePag
-
setTruePag
-
setDoDiscriminatingPathRule
public void setDoDiscriminatingPathRule(boolean doDiscriminatingPathRule)
-