Package edu.cmu.tetrad.search.utils
Class SepsetsConservative
java.lang.Object
edu.cmu.tetrad.search.utils.SepsetsConservative
- All Implemented Interfaces:
SepsetProducer
Provides a SepsetProcuder that 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. This version uses conservative reasoning (see the CPC algorithm).
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSepsetsConservative
(Graph graph, IndependenceTest independenceTest, SepsetMap extraSepsets, int depth) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getScore()
Pick out the sepset from among adj(i) or adj(k) with the highest p value.getSepsetsLists
(Node x, Node y, Node z, IndependenceTest test, int depth, boolean verbose) boolean
isIndependent
(Node a, Node b, Set<Node> c) boolean
isUnshieldedCollider
(Node i, Node j, Node k) void
setVerbose
(boolean verbose)
-
Constructor Details
-
SepsetsConservative
public SepsetsConservative(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 p value.- Specified by:
getSepset
in interfaceSepsetProducer
-
isUnshieldedCollider
- Specified by:
isUnshieldedCollider
in interfaceSepsetProducer
-
getSepsetsLists
-
isIndependent
- Specified by:
isIndependent
in interfaceSepsetProducer
-
getScore
public double getScore()- Specified by:
getScore
in interfaceSepsetProducer
-
getVariables
- Specified by:
getVariables
in interfaceSepsetProducer
-
setVerbose
public void setVerbose(boolean verbose) - Specified by:
setVerbose
in interfaceSepsetProducer
-
getIndependenceTest
-