Class FactorAnalysis
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.other.FactorAnalysis
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasParameters,TetradSerializable,Serializable
Factor analysis.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns an undirected graph used for comparison.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Retrieves the parameters for the current instance of theFactorAnalysisclass.runSearch(DataModel dataModel, Parameters parameters) Executes a factor analysis search on the given data model using the provided parameters.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
FactorAnalysis
public FactorAnalysis()Constructs a new instance of the algorithm.
-
-
Method Details
-
runSearch
Executes a factor analysis search on the given data model using the provided parameters.- Parameters:
dataModel- The data model to perform the factor analysis on.parameters- The parameters for the factor analysis.- Returns:
- The resulting graph after performing the factor analysis.
- Throws:
IllegalArgumentException- If the data model is not a continuous dataset.
-
getComparisonGraph
Returns an undirected graph used for comparison.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The undirected graph for comparison.
-
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 that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search.
-
getParameters
Retrieves the parameters for the current instance of theFactorAnalysisclass.- Specified by:
getParametersin interfaceHasParameters- Returns:
- a list of strings representing the parameters for the factor analysis.
-