Package edu.cmu.tetrad.search.utils
Class SepsetsSet
java.lang.Object
edu.cmu.tetrad.search.utils.SepsetsSet
- All Implemented Interfaces:
SepsetProducer
Provides a sepset producer using conditional independence tests to generate the Sepset map.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSepsetsSet
(SepsetMap sepsets, IndependenceTest test) Constructor for SepsetsSet. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculates the p-value for a statistical test a _||_ b | sepset.double
getScore()
getScore.Retrieves the sepset between two nodes.getSepsetContaining
(Node a, Node b, Set<Node> s) Retrieves the sepset for a and b, where we are expecting this sepset to contain all the nodes in s.getVariables.boolean
isIndependent
(Node a, Node b, Set<Node> sepset) isIndependent.boolean
isUnshieldedCollider
(Node i, Node j, Node k) isUnshieldedCollider.boolean
isVerbose.void
setVerbose
(boolean verbose) setVerbose.
-
Constructor Details
-
SepsetsSet
Constructor for SepsetsSet.
- Parameters:
sepsets
- aSepsetMap
objecttest
- aIndependenceTest
object
-
-
Method Details
-
getSepset
Retrieves the sepset between two nodes.- Specified by:
getSepset
in interfaceSepsetProducer
- Parameters:
a
- the first nodeb
- the second node- Returns:
- the set of nodes in the sepset between a and b
-
getSepsetContaining
Retrieves the sepset for a and b, where we are expecting this sepset to contain all the nodes in s.- Specified by:
getSepsetContaining
in interfaceSepsetProducer
- Parameters:
a
- the first nodeb
- the second nodes
- the set of nodes to check in the sepset of a and b- Returns:
- the set of nodes that the sepset of a and b is expected to contain.
- Throws:
IllegalArgumentException
- if the sepset of a and b does not contain all the nodes in s
-
getPValue
Description copied from interface:SepsetProducer
Calculates the p-value for a statistical test a _||_ b | sepset.- Specified by:
getPValue
in interfaceSepsetProducer
- Parameters:
a
- the first nodeb
- the second nodesepset
- the set of nodes- Returns:
- the p-value for the statistical test
- Throws:
UnsupportedOperationException
- if this method is called
-
isUnshieldedCollider
isUnshieldedCollider.
- Specified by:
isUnshieldedCollider
in interfaceSepsetProducer
- Parameters:
i
- aNode
objectj
- aNode
objectk
- aNode
object- Returns:
- a boolean
-
isIndependent
isIndependent.
- Specified by:
isIndependent
in interfaceSepsetProducer
- Parameters:
a
- aNode
objectb
- aNode
objectsepset
- aSet
object- Returns:
- a boolean
-
getScore
public double getScore()getScore.
- Specified by:
getScore
in interfaceSepsetProducer
- Returns:
- a double
-
getVariables
getVariables.
- Specified by:
getVariables
in interfaceSepsetProducer
- Returns:
- a
List
object
-
isVerbose
public boolean isVerbose()isVerbose.
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) setVerbose.
- Specified by:
setVerbose
in interfaceSepsetProducer
- Parameters:
verbose
- a boolean
-