Class R1
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.R1
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,TakesExternalGraph
,TetradSerializable
,Serializable
@Bootstrapping
public class R1
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
R1.
- 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 this method.Retrieves the list of parameters for the current instance.runSearch
(DataModel dataModel, Parameters parameters) Runs the search algorithm on the given data model with the provided parameters.void
setExternalGraph
(Algorithm algorithm) Sets the external graph for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
R1
public R1()Constructor for R1.
-
R1
-
-
Method Details
-
runSearch
Runs the search algorithm on the given data model with the provided parameters.- Parameters:
dataModel
- The data model to run the search on.parameters
- The parameters for the search algorithm.- Returns:
- The result graph after running the search algorithm.
- Throws:
IllegalArgumentException
- if the data model is not a continuous dataset or if the search algorithm fails to produce a graph.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 generated from the true directed graph.
-
getDescription
Returns a description of this method. If the algorithm is not null, the description includes the initial graph description from the algorithm.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- A description of this method.
-
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 algorithm.
-
getParameters
Retrieves the list of parameters for the current instance.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- A list of parameter names used by the current instance. If the algorithm has parameters defined, they will be included in the list. Additionally, the parameter Params .VERBOSE will also be included.
-
setExternalGraph
Sets the external graph for the algorithm.- Specified by:
setExternalGraph
in interfaceTakesExternalGraph
- Parameters:
algorithm
- The algorithm object to set as the external graph.- Throws:
IllegalArgumentException
- If the algorithm is null.
-