Class FaskPw
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.pairwise.FaskPw
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,TakesExternalGraph
,TetradSerializable
,Serializable
@Algorithm(name="FASK-PW",
command="fask-pw",
algoType=orient_pairwise,
dataType=Continuous)
@Bootstrapping
public class FaskPw
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesExternalGraph
FASK-PW (pairwise).
- 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.Retrieves the data type of the dataset.Returns a description of the RSkew algorithm.Retrieves the list of parameters required for the algorithm.runSearch
(DataModel dataModel, Parameters parameters) Runs the search algorithm using the given data model and parameters.void
setExternalGraph
(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
-
FaskPw
public FaskPw()Constructor for FaskPw.
-
FaskPw
-
-
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 to be used for the search- Returns:
- the resulting graph
- Throws:
IllegalArgumentException
- if the data model is not a continuous dataset or if the algorithm requires both data and a graph source as inputsInterruptedException
-
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 based on the provided true directed graph.
-
getDescription
Returns a description of the RSkew algorithm.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- A description of the RSkew algorithm.
-
getDataType
Retrieves the data type of the dataset.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- the data type of the dataset
-
getParameters
Retrieves the list of parameters required for the algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- a list of parameter names that are used in the algorithm.
-
setExternalGraph
Sets the external graph to be used by the algorithm.- Specified by:
setExternalGraph
in interfaceTakesExternalGraph
- Parameters:
algorithm
- the algorithm object representing the external graph- Throws:
IllegalArgumentException
- if the algorithm parameter is null
-