Class R3
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.R3
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasParameters,TakesExternalGraph,TetradSerializable,Serializable
@Algorithm(name="R3",
command="r3",
algoType=orient_pairwise,
dataType=Continuous)
@Bootstrapping
public class R3
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
R3.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Generates 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 method.Retrieves the list of parameters for the method.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to orient edges in the input graph using the provided data.voidsetExternalGraph(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
-
R3
public R3()Constructor for R3.
-
R3
-
-
Method Details
-
runSearch
Runs the search algorithm to orient edges in the input graph using the provided data.- Parameters:
dataModel- The data model containing the dataset to be used for the search.parameters- The parameters for the search algorithm.- Returns:
- The oriented graph resulting from the search algorithm.
- Throws:
IllegalArgumentException- If the data model is not a continuous dataset or if the search algorithm needs both data and a graph source as inputs but the graph is null.InterruptedException
-
getComparisonGraph
Generates a comparison graph based on the provided true directed graph.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph generated from the true directed graph.
-
getDescription
Returns a description of the method.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of the method, including the algorithm description if available.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search.
-
getParameters
Retrieves the list of parameters for the method.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters, including the algorithm parameters and the verbose parameter.
-
setExternalGraph
Sets the external graph to be used by the algorithm.- Specified by:
setExternalGraphin interfaceTakesExternalGraph- Parameters:
algorithm- The algorithm that contains the graph.- Throws:
IllegalArgumentException- If the algorithm is null.
-