Package edu.cmu.tetrad.search
Class CcdMax
java.lang.Object
edu.cmu.tetrad.search.CcdMax
- All Implemented Interfaces:
GraphSearch
This is an optimization of the CCD (Cyclic Causal Discovery) algorithm by Thomas Richardson.
- Author:
- Joseph Ramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()longintsearch()voidsetApplyOrientAwayFromCollider(boolean applyOrientAwayFromCollider) voidsetCollapseTiers(boolean collapseTiers) voidsetDepth(int depth) voidsetDoColliderOrientations(boolean doColliderOrientations) voidsetKnowledge(Knowledge knowledge) voidsetMaxPathLength(int maxPathLength) voidsetOrientConcurrentFeedbackLoops(boolean orientConcurrentFeedbackLoops) voidsetUseHeuristic(boolean useHeuristic) voidsetUseOrientTowardDConnections(boolean useOrientTowardDConnections)
-
Constructor Details
-
CcdMax
-
-
Method Details
-
search
- Specified by:
searchin interfaceGraphSearch
-
getDepth
public int getDepth()- Returns:
- The depth of search for the Fast Adjacency Search.
-
setDepth
public void setDepth(int depth) - Parameters:
depth- The depth of search for the Fast Adjacency Search.
-
getElapsedTime
public long getElapsedTime()- Returns:
- The elapsed time in milliseconds.
-
setApplyOrientAwayFromCollider
public void setApplyOrientAwayFromCollider(boolean applyOrientAwayFromCollider) - Parameters:
applyOrientAwayFromCollider- True if the orient away from collider rule should be applied.
-
getKnowledge
-
setKnowledge
-
setUseHeuristic
public void setUseHeuristic(boolean useHeuristic) -
getMaxPathLength
public int getMaxPathLength() -
setMaxPathLength
public void setMaxPathLength(int maxPathLength) -
setUseOrientTowardDConnections
public void setUseOrientTowardDConnections(boolean useOrientTowardDConnections) -
setOrientConcurrentFeedbackLoops
public void setOrientConcurrentFeedbackLoops(boolean orientConcurrentFeedbackLoops) -
setDoColliderOrientations
public void setDoColliderOrientations(boolean doColliderOrientations) -
setCollapseTiers
public void setCollapseTiers(boolean collapseTiers)
-