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()
double
getScore()
Pick out the sepset from among adj(i) or adj(k) with the highest score value.boolean
isIndependent
(Node a, Node b, List<Node> c) boolean
isUnshieldedCollider
(Node i, Node j, Node k) boolean
isUnshieldedNoncollider
(Node i, Node j, Node k) boolean
void
setDepth
(int depth) void
setVerbose
(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:
getSepset
in interfaceSepsetProducer
-
isUnshieldedCollider
- Specified by:
isUnshieldedCollider
in interfaceSepsetProducer
-
isUnshieldedNoncollider
- Specified by:
isUnshieldedNoncollider
in interfaceSepsetProducer
-
isIndependent
- Specified by:
isIndependent
in interfaceSepsetProducer
-
getScore
public double getScore()- Specified by:
getScore
in interfaceSepsetProducer
-
getVariables
- Specified by:
getVariables
in interfaceSepsetProducer
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbose
in interfaceSepsetProducer
-
getDag
-
setDepth
public void setDepth(int depth)
-