Class SvarSetEndpointStrategy

java.lang.Object
edu.cmu.tetrad.search.utils.SvarSetEndpointStrategy
All Implemented Interfaces:
SetEndpointStrategy

public class SvarSetEndpointStrategy extends Object implements 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.

SetEndpointStrategy IndependenceTest Knowledge

Since:
1.0
  • Constructor Details

    • SvarSetEndpointStrategy

      public SvarSetEndpointStrategy(IndependenceTest independenceTest, Knowledge knowledge)
      Creates a new instance of SvarSetEndpointStrategy with the given IndependenceTest and Knowledge.
      Parameters:
      independenceTest - the IndependenceTest used for conditional independence testing
      knowledge - the Knowledge used for causal discovery
      Throws:
      IllegalArgumentException - if independenceTest is null or knowledge is null
  • Method Details

    • setEndpoint

      public void setEndpoint(Graph graph, Node a, Node b, Endpoint endpoint)
      Sets the endpoint of a graph given the two nodes and the desired endpoint.
      Specified by:
      setEndpoint in interface SetEndpointStrategy
      Parameters:
      graph - the graph in which the endpoint is being set
      a - the starting node of the endpoint
      b - the ending node of the endpoint
      endpoint - the desired endpoint value
    • getNameNoLag

      public String getNameNoLag(Object obj)

      getNameNoLag.

      Parameters:
      obj - a Object object
      Returns:
      a String object