Class Eb
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.Eb
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasParameters,TakesExternalGraph,TetradSerializable,Serializable
@Bootstrapping
public class Eb
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
EB.
- 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, if there is one.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a description of the algorithm's orientation method.Returns the list of parameters that are used by the class.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to orient the edges in a graph using the given data and parameters.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
-
Eb
public Eb()Constructor for Eb.
-
Eb
Constructor for Eb.
- Parameters:
algorithm- aAlgorithmobject
-
-
Method Details
-
runSearch
Runs a search algorithm to orient the edges in a graph using the given data and parameters.- Parameters:
dataModel- the data model containing the dataset for the search algorithmparameters- the parameters for the search algorithm- Returns:
- the graph with oriented edges
- Throws:
IllegalArgumentException- if the data model is not a continuous dataset or if the algorithm is nullInterruptedException
-
getComparisonGraph
Returns a comparison graph based on the true directed graph, if there is one.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a description of the algorithm's orientation method.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- A description of the orientation method.
-
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 algorithm.
-
getParameters
Returns the list of parameters that are used by the class. These parameters include the parameters defined in the algorithm used by the class and the VERBOSE parameter.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters used by the class.
-
setExternalGraph
Sets the external graph to be used by the algorithm.- Specified by:
setExternalGraphin interfaceTakesExternalGraph- Parameters:
algorithm- The external graph algorithm to set.- Throws:
IllegalArgumentException- If the algorithm is null.
-