Package edu.cmu.tetrad.search
Class Ling
java.lang.Object
edu.cmu.tetrad.search.Ling
The code used within this class is largely Gustave Lacerda's, which corresponds to his essay, Discovering Cyclic
Causal Models by Independent Components Analysis. The code models the LiNG algorithm.
Note: This code is currently broken; please do not use it until it's fixed. 11/24/2015> 0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This small class is used to store graph permutations. -
Constructor Summary
ConstructorsConstructorDescriptionThe algorithm only requires a DataSet to process.When you don't have a Dataset, supply a Graph and the number of samples to draw and the algorithm will generate a DataSet.Ling
(GraphWithParameters graphWP, int samples) When you don't have a Dataset, supply a GraphWithParameters and the number of samples to draw and the algorithm will generate a DataSet. -
Method Summary
Modifier and TypeMethodDescriptiongetData()
long
Calculates the time used when processing the search method.double
ngFullData
(int rowIndex, Matrix data, Matrix W) pruneEdgesByResampling
(Matrix data) This is the method used in Patrik's code.search()
The search method is used to process LiNG.void
setThreshold
(double t) Sets the value at which thresholding occurs on Fast ICA data.
-
Constructor Details
-
Ling
The algorithm only requires a DataSet to process. Passing in a Dataset and then running the search algorithm is an effetive way to use LiNG.- Parameters:
d
- a DataSet over which the algorithm can process
-
Ling
When you don't have a Dataset, supply a GraphWithParameters and the number of samples to draw and the algorithm will generate a DataSet.- Parameters:
graphWP
- a graph with parameters from GraphWithParameterssamples
- the number of samples the algorithm draws in order to generate a DataSet
-
Ling
When you don't have a Dataset, supply a Graph and the number of samples to draw and the algorithm will generate a DataSet.- Parameters:
g
- a graph from Graphsamples
- the number of samples the algorithm draws in order to generate a DataSet
-
-
Method Details
-
getData
- Returns:
- DataSet Returns a dataset of the data used by the algorithm.
-
search
The search method is used to process LiNG. Call search when you want to run the algorithm. -
ngFullData
-
getElapsedTime
public long getElapsedTime()Calculates the time used when processing the search method. -
setThreshold
public void setThreshold(double t) Sets the value at which thresholding occurs on Fast ICA data. Default is .05.- Parameters:
t
- The value at which the thresholding is set
-
pruneEdgesByResampling
This is the method used in Patrik's code.
-