Class DirectLingam
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.continuous.dag.DirectLingam
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasParameters
,UsesScoreWrapper
,TetradSerializable
,Serializable
@Algorithm(name="Direct-LiNGAM",
command="direct-lingam",
algoType=forbid_latent_common_causes,
dataType=Continuous)
@Bootstrapping
public class DirectLingam
extends AbstractBootstrapAlgorithm
implements Algorithm, UsesScoreWrapper, ReturnsBootstrapGraphs
Direct LiNGAM.
- Version:
- $Id: $Id
- Author:
- bryanandrews
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for DirectLingam.DirectLingam
(ScoreWrapper score) Constructor for DirectLingam. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns a comparison graph based on the given true directed graph.Returns the data type of the algorithm, which can be Continuous, Discrete, Mixed, Graph, Covariance, or All.Returns a short, one-line description of this algorithm.Returns a list of parameters for the DirectLingam algorithm.Retrieves the ScoreWrapper object associated with this DirectLingam instance.runSearch
(DataModel dataModel, Parameters parameters) Runs the Direct LiNGAM search algorithm on the given data model with the specified parameters.void
setScoreWrapper
(ScoreWrapper score) Sets the score wrapper for this DirectLingam instance.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
DirectLingam
public DirectLingam()Constructor for DirectLingam.
-
DirectLingam
Constructor for DirectLingam.
- Parameters:
score
- aScoreWrapper
object
-
-
Method Details
-
runSearch
Runs the Direct LiNGAM search algorithm on the given data model with the specified parameters.- Parameters:
dataModel
- the data model to run the search algorithm onparameters
- the parameters for the search algorithm- Returns:
- the resulting graph from the search algorithm
- Throws:
IllegalArgumentException
- if the data model is not an instance of DataSet
-
getComparisonGraph
Returns a comparison graph based on the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph, which is a new instance of EdgeListGraph.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type of the algorithm, which can be Continuous, Discrete, Mixed, Graph, Covariance, or All.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type of the algorithm.
-
getParameters
Returns a list of parameters for the DirectLingam algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- the list of parameters
-
getScoreWrapper
Retrieves the ScoreWrapper object associated with this DirectLingam instance.- Specified by:
getScoreWrapper
in interfaceUsesScoreWrapper
- Returns:
- The ScoreWrapper object.
-
setScoreWrapper
Sets the score wrapper for this DirectLingam instance.- Specified by:
setScoreWrapper
in interfaceUsesScoreWrapper
- Parameters:
score
- the score wrapper to set.
-