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()
getScore.getSepset.getSepsetContaining
(Node a, Node b, Set<Node> s) Returns the subset for a and b, where this sepset is expected to contain all the nodes in s.getVariables.boolean
isIndependent
(Node d, Node c, Set<Node> sepset) isIndependent.boolean
isUnshieldedCollider
(Node i, Node j, Node k) isUnshieldedCollider.void
setVerbose
(boolean verbose) setVerbose.
-
Method Details
-
getSepset
getSepset.
-
getSepsetContaining
Returns the subset for a and b, where this sepset is expected to contain all the nodes in s. The behavior is morphed depending on whether sepsets are calculated using an independence test or not. If sepsets are calculated using an independence test, and a sepset is not found containing all the nodes in s, then the method will return null. Otherwise, if the discovered sepset does not contain all the nodes in s, the method will throw an exception.- Parameters:
a
- the first nodeb
- the second nodes
- the set of nodes- Returns:
- the set of nodes that sepsets for a and b are expected to contain.
-
isUnshieldedCollider
isUnshieldedCollider.
-
getScore
double getScore()getScore.
- Returns:
- a double
-
getVariables
getVariables.
- Returns:
- a
List
object
-
setVerbose
void setVerbose(boolean verbose) setVerbose.
- Parameters:
verbose
- a boolean
-
isIndependent
isIndependent.
-
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
-