Package edu.cmu.tetrad.search
Class MeekRulesCpdag
java.lang.Object
edu.cmu.tetrad.search.MeekRulesCpdag
- All Implemented Interfaces:
ImpliedOrientation
Implements Meek's complete orientation rule set for PC (Chris Meek (1995), "Causal inference and causal explanation
with background Knowledge"), modified for Conservative PC to check noncolliders against recorded noncolliders before
orienting.
For now, the fourth rule is always performed.
- Author:
- Joseph Ramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
meekR1Locally
(Graph graph, Knowledge Knowledge) boolean
boolean
Meek's rule R3.boolean
orientImplied
(Graph graph) Adds implied orientations.void
orientUsingMeekRulesLocally
(Knowledge Knowledge, Graph graph) void
setAggressivelyPreventCycles
(boolean aggressivelyPreventCycles) void
setKnowledge
(Knowledge Knowledge) Sets knowledge.
-
Constructor Details
-
MeekRulesCpdag
public MeekRulesCpdag()Constructs theMeekRules
with no logging.
-
-
Method Details
-
orientImplied
Description copied from interface:ImpliedOrientation
Adds implied orientations.- Specified by:
orientImplied
in interfaceImpliedOrientation
- Returns:
- Affected nodes.
-
setKnowledge
Description copied from interface:ImpliedOrientation
Sets knowledge.- Specified by:
setKnowledge
in interfaceImpliedOrientation
-
orientUsingMeekRulesLocally
-
meekR1Locally
-
meekR2
-
meekR3
Meek's rule R3. If a--b, a--c, a--d, c-->b, d-->b, then orient a-->b. -
meekR4
-
isAggressivelyPreventCycles
public boolean isAggressivelyPreventCycles() -
setAggressivelyPreventCycles
public void setAggressivelyPreventCycles(boolean aggressivelyPreventCycles)
-