Package edu.cmu.tetrad.search.utils
Interface SepsetProducer
- All Known Implementing Classes:
DagSepsets
,SepsetsGreedy
,SepsetsMaxP
,SepsetsMinP
,SepsetsPossibleMsep
,SepsetsSet
public interface SepsetProducer
Provides a covenience interface for classes that can generate and keep track of sepsets.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates the p-value for a statistical test a _||_ b | sepset.double
getScore()
Returns the score of the object.Retrieves the sepset, which is the set of common neighbors between two given nodes.getSepsetContaining
(Node a, Node b, Set<Node> s, int depth) Retrieves a sepset containing nodes in s from the given set of nodes.Retrieves the list of variables.boolean
isIndependent
(Node d, Node c, Set<Node> sepset) Checks if node d is independent of node c given the set of nodes in sepset.boolean
isUnshieldedCollider
(Node i, Node j, Node k, int depth) isUnshieldedCollider.void
Sets the graph for the SepsetProducer object.void
setVerbose
(boolean verbose) Sets the verbose mode of the SepsetProducer.
-
Method Details
-
getSepset
Retrieves the sepset, which is the set of common neighbors between two given nodes.- Parameters:
a
- the first nodeb
- the second nodedepth
- the depth of the search- Returns:
- the set of common neighbors between nodes a and b
- Throws:
InterruptedException
-
getSepsetContaining
Retrieves a sepset containing nodes in s from the given set of nodes.- Parameters:
a
- the first nodeb
- the second nodes
- the set of nodesdepth
- the depth of the search- Returns:
- the sepset containing nodes a and b from the given set of nodes
- Throws:
InterruptedException
-
isUnshieldedCollider
isUnshieldedCollider.
- Parameters:
i
- aNode
objectj
- aNode
objectk
- aNode
objectdepth
- the depth of the search- Returns:
- a boolean
- Throws:
InterruptedException
-
getScore
double getScore()Returns the score of the object.- Returns:
- the score value
-
getVariables
-
setVerbose
void setVerbose(boolean verbose) Sets the verbose mode of the SepsetProducer.- Parameters:
verbose
- true if verbose mode is enabled, false otherwise
-
isIndependent
Checks if node d is independent of node c given the set of nodes in sepset.- Parameters:
d
- the first nodec
- the second nodesepset
- the set of common neighbors between d and c- Returns:
- true if d is independent of c, false otherwise
- Throws:
InterruptedException
-
getPValue
Calculates the p-value for a statistical test a _||_ b | sepset.- Parameters:
a
- the first nodeb
- the second nodesepset
- the set of nodes- Returns:
- the p-value for the statistical test
- Throws:
InterruptedException
-
setGraph
Sets the graph for the SepsetProducer object.- Parameters:
graph
- the graph to set
-