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 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.intRetrieves the maximum length of any discriminating path.Getter for the fieldtruePag.booleanisCompleteRuleSetUsed.booleanTrue iff verbose output should be printed.voidsetCompleteRuleSetUsed(boolean completeRuleSetUsed) Setter for the fieldcompleteRuleSetUsed.voidsetKnowledge(Knowledge knowledge) Setter for the fieldknowledge.voidsetMaxDiscriminatingPathLength(int maxDiscriminatingPathLength) Sets the maximum length of any discriminating path.voidsetTruePag(Graph truePag) Setter for the fieldtruePag.voidsetVerbose(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
-