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,TakesScoreWrapper,TetradSerializable,Serializable
@Algorithm(name="Direct-LiNGAM",
command="direct-lingam",
algoType=forbid_latent_common_causes,
dataType=Continuous)
@Bootstrapping
public class DirectLingam
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesScoreWrapper, 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.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper for this DirectLingam instance.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
DirectLingam
public DirectLingam()Constructor for DirectLingam.
-
DirectLingam
Constructor for DirectLingam.
- Parameters:
score- aScoreWrapperobject
-
-
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:
getComparisonGraphin 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:
getDescriptionin 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:
getDataTypein interfaceAlgorithm- Returns:
- The data type of the algorithm.
-
getParameters
Returns a list of parameters for the DirectLingam algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- the list of parameters
-
getScoreWrapper
Retrieves the ScoreWrapper object associated with this DirectLingam instance.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- The ScoreWrapper object.
-
setScoreWrapper
Sets the score wrapper for this DirectLingam instance.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- the score wrapper to set.
-