Class Fofc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.cluster.Fofc
- All Implemented Interfaces:
Algorithm
,ClusterAlgorithm
,ReturnsBootstrapGraphs
,TakesCovarianceMatrix
,HasKnowledge
,HasParameters
,TetradSerializable
,Serializable
@Algorithm(name="FOFC",
command="fofc",
algoType=search_for_structure_over_latents)
@Bootstrapping
public class Fofc
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, ClusterAlgorithm, TakesCovarianceMatrix
Find One Factor Clusters.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) This method returns a comparison graph that is obtained from the given true directed graph.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Returns the knowledge associated with this object.Returns a list of parameters for the search algorithm.runSearch
(DataModel dataModel, Parameters parameters) Runs the search algorithm and returns the resulting graph.void
setKnowledge
(Knowledge knowledge) Sets the knowledge associated with this object.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
-
Constructor Details
-
Fofc
public Fofc()Constructor for Fofc.
-
-
Method Details
-
runSearch
Runs the search algorithm and returns the resulting graph.- Parameters:
dataModel
- The data model containing the variables.parameters
- The parameters for the search algorithm.- Returns:
- The resulting graph.
- Throws:
IllegalArgumentException
- if the check type parameter is unexpected.
-
getComparisonGraph
This method returns a comparison graph that is obtained from the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph obtained by applying the CPDAG algorithm to the true directed graph.
-
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 that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search.
-
getParameters
Returns a list of parameters for the search algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters for the search algorithm.
-
getKnowledge
Returns the knowledge associated with this object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- the knowledge associated with this object
-
setKnowledge
Sets the knowledge associated with this object.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- a knowledge object
-