Package edu.cmu.tetrad.search
Class SepsetsGreedy
java.lang.Object
edu.cmu.tetrad.search.SepsetsGreedy
- All Implemented Interfaces:
SepsetProducer
Selects the first sepset it comes to from among the extra sepsets or the adjacents of i or k,
or null if none is found.
-
Constructor Summary
ConstructorsConstructorDescriptionSepsetsGreedy(Graph graph, IndependenceTest independenceTest, SepsetMap extraSepsets, int depth) -
Method Summary
Modifier and TypeMethodDescriptiongetDag()doublegetScore()Pick out the sepset from among adj(i) or adj(k) with the highest score value.booleanisIndependent(Node a, Node b, List<Node> c) booleanisUnshieldedCollider(Node i, Node j, Node k) booleanisUnshieldedNoncollider(Node i, Node j, Node k) booleanvoidsetDepth(int depth) voidsetVerbose(boolean verbose)
-
Constructor Details
-
SepsetsGreedy
public SepsetsGreedy(Graph graph, IndependenceTest independenceTest, SepsetMap extraSepsets, int depth)
-
-
Method Details
-
getSepset
Pick out the sepset from among adj(i) or adj(k) with the highest score value.- Specified by:
getSepsetin interfaceSepsetProducer
-
isUnshieldedCollider
- Specified by:
isUnshieldedColliderin interfaceSepsetProducer
-
isUnshieldedNoncollider
- Specified by:
isUnshieldedNoncolliderin interfaceSepsetProducer
-
isIndependent
- Specified by:
isIndependentin interfaceSepsetProducer
-
getScore
public double getScore()- Specified by:
getScorein interfaceSepsetProducer
-
getVariables
- Specified by:
getVariablesin interfaceSepsetProducer
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbosein interfaceSepsetProducer
-
getDag
-
setDepth
public void setDepth(int depth)
-