Class VcPcFast
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.VcPcFast
- All Implemented Interfaces:
- IGraphSearch
Implements a convervative version of PC, in which the Markov condition is assumed but faithfulness is tested
 locally.
- Author:
- josephramsey (this version).
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionVcPcFast(IndependenceTest independenceTest) Constructs a CPC algorithm that uses the given independence test as oracle.
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidfutureNodeVisit(Graph graph, Node b, LinkedList<Node> path, Set<Node> futureNodes) intgetDepth()longgetGraph()The graph that's constructed during the search.getPopulationTripleType(Node x, Node y, Node z, IndependenceTest test, int depth, Graph graph, boolean verbose) booleansearch()Runs the search and returns a graph.voidsetDepth(int depth) Sets the maximum number of variables conditioned on in any conditional independence test.voidsetFacts(IndependenceFacts facts) voidvoidsetKnowledge(Knowledge knowledge) Sets the knowledge specification used in the search.voidsetMeekPreventCycles(boolean meekPreventCycles) Sets to true just in case edges will not be added if they would create cycles.voidsetVerbose(boolean verbose) 
- 
Constructor Details- 
VcPcFastConstructs a CPC algorithm that uses the given independence test as oracle. This does not make a copy of the independence test, for fear of duplicating the data set!
 
- 
- 
Method Details- 
futureNodeVisit
- 
isMeekPreventCyclespublic boolean isMeekPreventCycles()- Returns:
- true just in case edges will not be added if they would create cycles.
 
- 
setMeekPreventCyclespublic void setMeekPreventCycles(boolean meekPreventCycles) Sets to true just in case edges will not be added if they would create cycles.
- 
getElapsedTimepublic long getElapsedTime()- Returns:
- the elapsed time of search in milliseconds, after search()has been run.
 
- 
getKnowledge- Returns:
- the knowledge specification used in the search. Non-null.
 
- 
setKnowledgeSets the knowledge specification used in the search. Non-null.
- 
getIndependenceTest- Returns:
- the independence test used in the search, set in the constructor. This is not returning a copy, for fear of duplicating the data set!
 
- 
getDepthpublic int getDepth()- Returns:
- the depth of the search--that is, the maximum number of variables conditioned on in any conditional independence test.
 
- 
setDepthpublic void setDepth(int depth) Sets the maximum number of variables conditioned on in any conditional independence test. If set to -1, the value of 1000 will be used. May not be set to Integer.MAX_VALUE, due to a Java bug on multi-core systems.
- 
getAmbiguousTriples- Returns:
- the set of ambiguous triples found during the most recent run of the algorithm. Non-null after a call to
 search().
 
- 
getColliderTriples- Returns:
- the set of collider triples found during the most recent run of the algorithm. Non-null after a call to
 search().
 
- 
getNoncolliderTriples- Returns:
- the set of noncollider triples found during the most recent run of the algorithm. Non-null after a call
 to search().
 
- 
getAdjacencies
- 
getApparentNonadjacencies
- 
getDefiniteNonadjacencies
- 
searchDescription copied from interface:IGraphSearchRuns the search and returns a graph.- Specified by:
- searchin interface- IGraphSearch
- Returns:
- The discovered graph.
 
- 
getPopulationTripleTypepublic VcPcFast.CpcTripleType getPopulationTripleType(Node x, Node y, Node z, IndependenceTest test, int depth, Graph graph, boolean verbose) 
- 
getGraphThe graph that's constructed during the search.
- 
setGraph
- 
setVerbosepublic void setVerbose(boolean verbose) 
- 
setFacts
 
-