Class VcFas
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.VcFas
Implements the "fast adjacency search" used in several causal algorithm in this package. In the fast adjacency
 search, at a given stage of the search, an edge X*-*Y is removed from the graph if X _||_ Y | S, where S is a subset
 of size d either of adj(X) or of adj(Y), where d is the depth of the search. The fast adjacency search performs this
 procedure for each pair of adjacent edges in the graph and for each depth d = 0, 1, 2, ..., d1, where d1 is either
 the maximum depth or else the first such depth at which no edges can be removed. The interpretation of this adjacency
 search is different for different algorithm, depending on the assumptions of the algorithm. A mapping from {x, y} to
 S({x, y}) is returned for edges x *-* y that have been removed.
- Version:
- $Id: $Id
- Author:
- josephramsey.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGetter for the fieldapparentlyNonadjacencies.intgetDepth()Getter for the fielddepth.Getter for the fieldknowledge.getNodes()getNodes.intGetter for the fieldnumIndependenceTests.booleanisVerbose.search()Discovers all adjacencies in data.voidsetDepth(int depth) Setter for the fielddepth.voidsetExternalGraph(Graph externalGraph) Setter for the fieldexternalGraph.voidsetKnowledge(Knowledge knowledge) Setter for the fieldknowledge.voidsetVerbose(boolean verbose) Setter for the fieldverbose.
- 
Constructor Details- 
VcFasConstructor for VcFas. - Parameters:
- test- a- IndependenceTestobject
 
 
- 
- 
Method Details- 
searchDiscovers all adjacencies in data. The procedure is to remove edges in the graph which connect pairs of variables which are independent conditional on some other set of variables in the graph (the "sepset"). These are removed in tiers. First, edges which are independent conditional on zero other variables are removed, then edges which are independent conditional on one other variable are removed, then two, then three, and so on, until no more edges can be removed from the graph. The edges which remain in the graph after this procedure are the adjacencies in the data.- Returns:
- a SepSet, which indicates which variables are independent conditional on which other variables
 
- 
getDepthpublic int getDepth()Getter for the field depth.- Returns:
- a int
 
- 
setDepthpublic void setDepth(int depth) Setter for the field depth.- Parameters:
- depth- a int
 
- 
getKnowledgeGetter for the field knowledge.- Returns:
- a Knowledgeobject
 
- 
setKnowledgeSetter for the field knowledge.- Parameters:
- knowledge- a- Knowledgeobject
 
- 
getNumIndependenceTestspublic int getNumIndependenceTests()Getter for the field numIndependenceTests.- Returns:
- a int
 
- 
getApparentlyNonadjacenciesGetter for the field apparentlyNonadjacencies.- Returns:
- a Mapobject
 
- 
setExternalGraphSetter for the field externalGraph.- Parameters:
- externalGraph- a- Graphobject
 
- 
isVerbosepublic boolean isVerbose()isVerbose. - Returns:
- a boolean
 
- 
setVerbosepublic void setVerbose(boolean verbose) Setter for the field verbose.- Parameters:
- verbose- a boolean
 
- 
getNodesgetNodes. - Returns:
- a Listobject
 
 
-