Class MaxP

java.lang.Object
edu.cmu.tetrad.search.utils.MaxP

public final class MaxP extends Object

Performs a Max-P orientation of unshielded triples in a graph.

Ramsey, J. (2016). Improving accuracy and scalability of the pc algorithm by maximizing p-value. arXiv preprint arXiv:1610.00378.

Author:
josephramsey
  • Constructor Details

    • MaxP

      public MaxP(IndependenceTest test)
      Constructor.
      Parameters:
      test - The test to use for orienting colliders using the Max-P rule.
  • Method Details

    • orient

      public void orient(Graph graph)
      Adds colliders to the given graph using the max P rule.
      Parameters:
      graph - The graph to orient.
    • setDepth

      public void setDepth(int depth)
      Parameters:
      depth - The depth of search for the Fast Adjacency Search.
    • setUseHeuristic

      public void setUseHeuristic(boolean useHeuristic)
      Sets whether the max P heuristic should be used.
      Parameters:
      useHeuristic - True, if so.
    • setMaxPathLength

      public void setMaxPathLength(int maxPathLength)
      Sets the max path length to use for the max P heuristic.
      Parameters:
      maxPathLength - This maximum.
    • setConflictRule

      public void setConflictRule(PcCommon.ConflictRule conflictRule)
      Sets the PC conflict rule to use for orientation.
      Parameters:
      conflictRule - This rule.
      See Also:
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the knowledge to use for orientation.
      Parameters:
      knowledge - This knowledge.