Class GraspTol
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.GraspTol
Implements the GRASP algorithms, with various execution flags.
- Version:
- $Id: $Id
- Author:
- bryanandrews, josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionGraspTol
(@NotNull IndependenceTest test) Constructor for GraspTol.GraspTol
(@NotNull IndependenceTest test, Score score) Constructor for GraspTol.Constructor for GraspTol.Constructor for GraspTol. -
Method Summary
Modifier and TypeMethodDescriptionbestOrder.void
betterMutation
(@NotNull TeyssierScorer scorer) betterMutation.@NotNull Graph
getGraph
(boolean cpDag) getGraph.int
getNumEdges.Getter for the fieldvariables
.grasp
(@NotNull TeyssierScorer scorer) grasp.boolean
isVerbose.void
setAllowRandomnessInsideAlgorithm
(boolean allowRandomnessInsideAlgorithm) Setter for the fieldallowRandomnessInsideAlgorithm
.void
setDepth
(int depth) Setter for the fielddepth
.void
setKnowledge
(Knowledge knowledge) Setter for the fieldknowledge
.void
setNonSingularDepth
(int nonSingularDepth) Setter for the fieldnonSingularDepth
.void
setNumStarts
(int numStarts) Setter for the fieldnumStarts
.void
setOrdered
(boolean ordered) Setter for the fieldordered
.void
setToleranceDepth
(int toleranceDepth) Setter for the fieldtoleranceDepth
.void
setUncoveredDepth
(int uncoveredDepth) Setter for the fielduncoveredDepth
.void
setUseDataOrder
(boolean useDataOrder) Setter for the fielduseDataOrder
.void
setUseRaskuttiUhler
(boolean usePearl) setUseRaskuttiUhler.void
setUseScore
(boolean useScore) Setter for the fielduseScore
.void
setVerbose
(boolean verbose) Setter for the fieldverbose
.
-
Constructor Details
-
GraspTol
-
GraspTol
Constructor for GraspTol.
- Parameters:
test
- aIndependenceTest
object
-
GraspTol
Constructor for GraspTol.
- Parameters:
test
- aIndependenceTest
objectscore
- aScore
object
-
GraspTol
-
-
Method Details
-
bestOrder
bestOrder.
- Parameters:
order
- aList
object- Returns:
- a
List
object - Throws:
InterruptedException
-
betterMutation
betterMutation.
- Parameters:
scorer
- aTeyssierScorer
object- Throws:
InterruptedException
-
getNumEdges
public int getNumEdges()getNumEdges.
- Returns:
- a int
-
grasp
grasp.
- Parameters:
scorer
- aTeyssierScorer
object- Returns:
- a
List
object - Throws:
InterruptedException
-
getGraph
-
setNumStarts
public void setNumStarts(int numStarts) Setter for the field
numStarts
.- Parameters:
numStarts
- a int
-
getVariables
-
isVerbose
public boolean isVerbose()isVerbose.
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Setter for the field
verbose
.- Parameters:
verbose
- a boolean
-
setKnowledge
-
setDepth
public void setDepth(int depth) Setter for the field
depth
.- Parameters:
depth
- a int
-
setUncoveredDepth
public void setUncoveredDepth(int uncoveredDepth) Setter for the field
uncoveredDepth
.- Parameters:
uncoveredDepth
- a int
-
setNonSingularDepth
public void setNonSingularDepth(int nonSingularDepth) Setter for the field
nonSingularDepth
.- Parameters:
nonSingularDepth
- a int
-
setUseScore
public void setUseScore(boolean useScore) Setter for the field
useScore
.- Parameters:
useScore
- a boolean
-
setOrdered
public void setOrdered(boolean ordered) Setter for the field
ordered
.- Parameters:
ordered
- a boolean
-
setUseRaskuttiUhler
public void setUseRaskuttiUhler(boolean usePearl) setUseRaskuttiUhler.
- Parameters:
usePearl
- a boolean
-
setUseDataOrder
public void setUseDataOrder(boolean useDataOrder) Setter for the field
useDataOrder
.- Parameters:
useDataOrder
- a boolean
-
setAllowRandomnessInsideAlgorithm
public void setAllowRandomnessInsideAlgorithm(boolean allowRandomnessInsideAlgorithm) Setter for the field
allowRandomnessInsideAlgorithm
.- Parameters:
allowRandomnessInsideAlgorithm
- a boolean
-
setToleranceDepth
public void setToleranceDepth(int toleranceDepth) Setter for the field
toleranceDepth
.- Parameters:
toleranceDepth
- a int
-