Package edu.cmu.tetrad.search.utils
Class SvarSetEndpointStrategy
java.lang.Object
edu.cmu.tetrad.search.utils.SvarSetEndpointStrategy
- All Implemented Interfaces:
SetEndpointStrategy
The SvarSetEndpointStrategy class implements the SetEndpointStrategy interface and provides a strategy for setting
the endpoint of an edge in a graph. It uses the IndependenceTest and Knowledge classes for conducting conditional
independence testing and causal discovery.
The idea is, whenever an endpoint is set by FciOrint, we should check if there are similar pairs in the graph that should be oriented in the same way.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSvarSetEndpointStrategy
(IndependenceTest independenceTest, Knowledge knowledge) Creates a new instance of SvarSetEndpointStrategy with the given IndependenceTest and Knowledge. -
Method Summary
Modifier and TypeMethodDescriptiongetNameNoLag
(Object obj) getNameNoLag.void
setEndpoint
(Graph graph, Node a, Node b, Endpoint endpoint) Sets the endpoint of a graph given the two nodes and the desired endpoint.
-
Constructor Details
-
SvarSetEndpointStrategy
Creates a new instance of SvarSetEndpointStrategy with the given IndependenceTest and Knowledge.- Parameters:
independenceTest
- the IndependenceTest used for conditional independence testingknowledge
- the Knowledge used for causal discovery- Throws:
IllegalArgumentException
- if independenceTest is null or knowledge is null
-
-
Method Details
-
setEndpoint
Sets the endpoint of a graph given the two nodes and the desired endpoint.- Specified by:
setEndpoint
in interfaceSetEndpointStrategy
- Parameters:
graph
- the graph in which the endpoint is being seta
- the starting node of the endpointb
- the ending node of the endpointendpoint
- the desired endpoint value
-
getNameNoLag
-