Class SkewE
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.SkewE
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,TakesExternalGraph
,TetradSerializable
,Serializable
@Bootstrapping
public class SkewE
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
SkewE.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns a comparison graph based on the provided true directed graph.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a description of the algorithm used.Returns the list of parameters for the current instance of the class.runSearch
(DataModel dataModel, Parameters parameters) Executes the SkewE search algorithm.void
setExternalGraph
(Algorithm algorithm) Sets the external graph to be used by the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
SkewE
public SkewE()Constructor for SkewE.
-
SkewE
-
-
Method Details
-
runSearch
Executes the SkewE search algorithm.- Parameters:
dataModel
- The data model containing the dataset.parameters
- The parameters to be used for the search.- Returns:
- The oriented graph.
- Throws:
IllegalArgumentException
- if the data model is not a continuous dataset or the graph is null.InterruptedException
-
getComparisonGraph
Returns a comparison graph based on the provided true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- A comparison graph.
-
getDescription
Returns a description of the algorithm used. If an initial graph is provided to the algorithm, it appends the initial graph description to the description. The format of the description is "SkewE with initial graph from [initial graph description]".- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search.
-
getParameters
Returns the list of parameters for the current instance of the class.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters, including algorithm parameters and additional parameters.
-
setExternalGraph
Sets the external graph to be used by the algorithm.- Specified by:
setExternalGraph
in interfaceTakesExternalGraph
- Parameters:
algorithm
- The algorithm that can take an external graph as input.- Throws:
IllegalArgumentException
- if the algorithm is null.
-