Class Tanh
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.Tanh
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasParameters,TakesExternalGraph,TetradSerializable,Serializable
@Bootstrapping
public class Tanh
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
Tanh.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns a comparison graph for the given 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 method.Returns the parameters required by the current algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given data model and parameters.voidsetExternalGraph(Algorithm algorithm) Sets the external graph for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
Tanh
Constructor for Tanh.
- Parameters:
algorithm- aAlgorithmobject
-
-
Method Details
-
runSearch
Runs the search algorithm using the given 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 after running the search algorithm
- Throws:
IllegalArgumentException- if the data model is not a continuous datasetInterruptedException
-
getComparisonGraph
Returns a comparison graph for the given 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 method.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- A description of the 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 parameters required by the current algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- a List containing the parameter names
-
setExternalGraph
Sets the external graph for the algorithm.- Specified by:
setExternalGraphin interfaceTakesExternalGraph- Parameters:
algorithm- The algorithm object representing the external graph.- Throws:
IllegalArgumentException- if the algorithm is null.
-