Class Bpc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.cluster.Bpc
- All Implemented Interfaces:
Algorithm
,ClusterAlgorithm
,TakesCovarianceMatrix
,HasParameters
,TetradSerializable
,Serializable
@Algorithm(name="BPC",
command="bpc",
algoType=search_for_structure_over_latents)
@Bootstrapping
public class Bpc
extends Object
implements Algorithm, ClusterAlgorithm, TakesCovarianceMatrix
Build Pure Clusters.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns the comparison graph for the given true directed graph.Retrieves the data type of the algorithm's output.Returns a short, one-line description of this algorithm.Retrieves the list of parameters used by the algorithm.search
(DataModel dataModel, Parameters parameters) Runs the search algorithm to build a graph using the given data model and parameters.
-
Constructor Details
-
Bpc
public Bpc()Constructs a new BPC algorithm.
-
-
Method Details
-
search
Runs the search algorithm to build a graph using the given data model and parameters.- Specified by:
search
in interfaceAlgorithm
- Parameters:
dataModel
- The data model to be used for the search.parameters
- The parameters for the search algorithm.- Returns:
- The resulting graph.
- Throws:
IllegalArgumentException
- If the check type is unexpected.InterruptedException
-
getComparisonGraph
Returns the comparison graph for the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison 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
Retrieves the data type of the algorithm's output.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type of the algorithm's output.
-
getParameters
Retrieves the list of parameters used by the algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- A list of strings representing the parameters used by the algorithm.
-