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 SummaryConstructors
- 
Method SummaryModifier 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.voidsetExternalGraph(Algorithm algorithm) Sets the external graph for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, search
- 
Constructor Details- 
R1public R1()Constructor for R1. 
- 
R1Constructor for R1. - Parameters:
- algorithm- a- Algorithmobject
 
 
- 
- 
Method Details- 
runSearchRuns 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
 
- 
getComparisonGraphReturns a comparison graph based on the provided true directed graph.- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true directed graph, if there is one.
- Returns:
- A comparison graph generated from the true directed graph.
 
- 
getDescriptionReturns a description of this method. If the algorithm is not null, the description includes the initial graph description from the algorithm.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- A description of this method.
 
- 
getDataTypeReturns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type required by the search algorithm.
 
- 
getParametersRetrieves the list of parameters for the current instance.- Specified by:
- getParametersin interface- HasParameters
- 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.
 
- 
setExternalGraphSets the external graph for the algorithm.- Specified by:
- setExternalGraphin interface- TakesExternalGraph
- Parameters:
- algorithm- The algorithm object to set as the external graph.
- Throws:
- IllegalArgumentException- If the algorithm is null.
 
 
-