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.voidbetterMutation(@NotNull TeyssierScorer scorer) betterMutation.@NotNull GraphgetGraph(boolean cpDag) getGraph.intgetNumEdges.Getter for the fieldvariables.grasp(@NotNull TeyssierScorer scorer) grasp.booleanisVerbose.voidsetAllowRandomnessInsideAlgorithm(boolean allowRandomnessInsideAlgorithm) Setter for the fieldallowRandomnessInsideAlgorithm.voidsetDepth(int depth) Setter for the fielddepth.voidsetKnowledge(Knowledge knowledge) Setter for the fieldknowledge.voidsetNonSingularDepth(int nonSingularDepth) Setter for the fieldnonSingularDepth.voidsetNumStarts(int numStarts) Setter for the fieldnumStarts.voidsetOrdered(boolean ordered) Setter for the fieldordered.voidsetToleranceDepth(int toleranceDepth) Setter for the fieldtoleranceDepth.voidsetUncoveredDepth(int uncoveredDepth) Setter for the fielduncoveredDepth.voidsetUseDataOrder(boolean useDataOrder) Setter for the fielduseDataOrder.voidsetUseRaskuttiUhler(boolean usePearl) setUseRaskuttiUhler.voidsetUseScore(boolean useScore) Setter for the fielduseScore.voidsetVerbose(boolean verbose) Setter for the fieldverbose.
-
Constructor Details
-
GraspTol
Constructor for GraspTol.
- Parameters:
score- aScoreobject
-
GraspTol
Constructor for GraspTol.
- Parameters:
test- aIndependenceTestobject
-
GraspTol
Constructor for GraspTol.
- Parameters:
test- aIndependenceTestobjectscore- aScoreobject
-
GraspTol
Constructor for GraspTol.
- Parameters:
variables- aListobject
-
-
Method Details
-
bestOrder
bestOrder.
-
betterMutation
betterMutation.
- Parameters:
scorer- aTeyssierScorerobject
-
getNumEdges
public int getNumEdges()getNumEdges.
- Returns:
- a int
-
grasp
grasp.
- Parameters:
scorer- aTeyssierScorerobject- Returns:
- a
Listobject
-
getGraph
getGraph.
- Parameters:
cpDag- a boolean- Returns:
- a
Graphobject
-
setNumStarts
public void setNumStarts(int numStarts) Setter for the field
numStarts.- Parameters:
numStarts- a int
-
getVariables
Getter for the field
variables.- Returns:
- a
Listobject
-
isVerbose
public boolean isVerbose()isVerbose.
- Returns:
- a boolean
-
setVerbose
public void setVerbose(boolean verbose) Setter for the field
verbose.- Parameters:
verbose- a boolean
-
setKnowledge
Setter for the field
knowledge.- Parameters:
knowledge- aKnowledgeobject
-
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
-