Package edu.cmu.tetrad.search.utils
Interface SepsetProducer
- All Known Implementing Classes:
DagSepsets,SepsetsGreedy,SepsetsGreedyMb,SepsetsMaxP,SepsetsMinP,SepsetsPossibleDsep,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 TypeMethodDescriptiondoubleCalculates the p-value for a statistical test a _||_ b | sepset.doublegetScore()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.booleanisIndependent(Node d, Node c, Set<Node> sepset) Checks if node d is independent of node c given the set of nodes in sepset.booleanisUnshieldedCollider(Node i, Node j, Node k, int depth) isUnshieldedCollider.voidSets the graph for the SepsetProducer object.voidsetVerbose(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 searchorder- the order of the nodes, used for some implementations- Returns:
- the set of common neighbors between nodes a and b
- Throws:
InterruptedException- if any
-
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- if any
-
isUnshieldedCollider
isUnshieldedCollider.
- Parameters:
i- aNodeobjectj- aNodeobjectk- aNodeobjectdepth- the depth of the search- Returns:
- a boolean
- Throws:
InterruptedException- if any
-
getScore
double getScore()Returns the score of the object.- Returns:
- the score value
-
getVariables
Retrieves the list of variables. -
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- if any
-
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- if any
-
setGraph
Sets the graph for the SepsetProducer object.- Parameters:
graph- the graph to set
-