Class Rskew
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.Rskew
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,TakesExternalGraph
,TetradSerializable
,Serializable
@Algorithm(name="RSkew",
command="r-skew",
algoType=orient_pairwise,
dataType=Continuous)
@Bootstrapping
public class Rskew
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
RSkew.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns a comparison graph based on the true directed graph.Retrieves the data type required by the algorithm.Returns a description of the algorithm being used, including the initial graph if available.Retrieves a list of parameters required for the current instance of the class.runSearch
(DataModel dataModel, Parameters parameters) Runs the search algorithm using the provided data model and parameters.void
setExternalGraph
(Algorithm algorithm) Sets the external graph for this algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
Rskew
public Rskew()Constructor for Rskew.
-
Rskew
-
-
Method Details
-
runSearch
Runs the search algorithm using the provided data model and parameters.- Parameters:
dataModel
- the data model to be used for the searchparameters
- the parameters for the search algorithm- Returns:
- the resulting graph from the search algorithm
- Throws:
IllegalArgumentException
- if the data model is not a continuous dataset or if the search algorithm requires both data and a graph source as inputsInterruptedException
-
getComparisonGraph
Returns a comparison graph based on the 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 being used, including the initial graph if available.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- A description of the algorithm.
-
getDataType
Retrieves the data type required by the algorithm.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the algorithm.
-
getParameters
Retrieves a list of parameters required for the current instance of the class.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- A list of parameter names.
-
setExternalGraph
Sets the external graph for this algorithm.- Specified by:
setExternalGraph
in interfaceTakesExternalGraph
- Parameters:
algorithm
- The algorithm object representing the external graph.- Throws:
IllegalArgumentException
- if the algorithm object is null.
-