Uses of Class
ffx.numerics.clustering.Cluster
Packages that use Cluster
Package
Description
The clustering package provides hierarchical agglomerative clustering utilities,
including linkage strategies (single, complete, average, weighted), distance map
management, and supporting data structures and algorithms.
Visualization components for clustering results, including Swing-based classes
to render dendrograms and related views of hierarchical clusters.
-
Uses of Cluster in ffx.numerics.clustering
Methods in ffx.numerics.clustering that return ClusterModifier and TypeMethodDescriptionClusterPair.agglomerate
(int clusterIdx) Agglomerates left and right clusters under an auto-generated name.ClusterPair.agglomerate
(String name) Agglomerates left and right clusters into a new parent with the given name.ClusterPair.getlCluster()
Gets the left cluster.ClusterPair.getOtherCluster
(Cluster c) Returns the opposite cluster of the provided one in this pair.Cluster.getParent()
Gets the parent cluster of this node, or null if this is the root.ClusterPair.getrCluster()
Gets the right cluster.HierarchyBuilder.getRootCluster()
Returns the root cluster if the hierarchy is complete.ClusteringAlgorithm.performClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy) Performs hierarchical agglomerative clustering on a square distance matrix.DefaultClusteringAlgorithm.performClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy) Performs hierarchical agglomerative clustering using a full N x N distance matrix.PDistClusteringAlgorithm.performClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy) Performs hierarchical agglomerative clustering using a condensed pdist-like matrix.ClusteringAlgorithm.performWeightedClustering
(double[][] distances, String[] clusterNames, double[] weights, LinkageStrategy linkageStrategy) Performs hierarchical clustering when each initial element has an associated weight.DefaultClusteringAlgorithm.performWeightedClustering
(double[][] distances, String[] clusterNames, double[] weights, LinkageStrategy linkageStrategy) Performs hierarchical clustering when each element has an associated weight.PDistClusteringAlgorithm.performWeightedClustering
(double[][] distances, String[] clusterNames, double[] weights, LinkageStrategy linkageStrategy) Weighted variant for condensed inputs; currently delegates to unweighted clustering as weights are not applied with condensed input in this implementation.Methods in ffx.numerics.clustering that return types with arguments of type ClusterModifier and TypeMethodDescriptionHierarchyBuilder.flatAgg
(LinkageStrategy linkageStrategy, Double threshold) Performs agglomeration until the minimal inter-cluster distance exceeds the threshold, and returns the remaining clusters (flat clustering at that cut).Cluster.getChildren()
Returns the list of child clusters, creating it lazily if needed.HierarchyBuilder.getClusters()
Returns the current working list of clusters (not necessarily a single root).ClusteringAlgorithm.performFlatClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy, Double threshold) Performs a flat clustering by agglomerating until the next linkage distance would exceed the provided threshold, and returns the list of clusters at that cut.DefaultClusteringAlgorithm.performFlatClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy, Double threshold) Produces a flat clustering by agglomerating until the next merge would exceed the threshold.PDistClusteringAlgorithm.performFlatClustering
(double[][] distances, String[] clusterNames, LinkageStrategy linkageStrategy, Double threshold) Produces a flat clustering from a condensed distance matrix by agglomerating until the threshold is exceeded.Methods in ffx.numerics.clustering with parameters of type ClusterModifier and TypeMethodDescriptionvoid
Adds a child cluster to this node.boolean
Tests whether this cluster has the specified child.int
Cluster.countLeafs
(Cluster node, int count) Recursive helper to count leaves under the specified node.DistanceMap.findByCodePair
(Cluster c1, Cluster c2) Finds the ClusterPair for the two provided clusters.ClusterPair.getOtherCluster
(Cluster c) Returns the opposite cluster of the provided one in this pair.void
ClusterPair.setlCluster
(Cluster lCluster) Sets the left cluster.void
Sets the parent cluster of this node.void
ClusterPair.setrCluster
(Cluster rCluster) Sets the right cluster.Method parameters in ffx.numerics.clustering with type arguments of type ClusterModifier and TypeMethodDescriptionvoid
Cluster.setChildren
(List<Cluster> children) Sets the list of child clusters for this node.Constructors in ffx.numerics.clustering with parameters of type ClusterModifierConstructorDescriptionClusterPair
(Cluster left, Cluster right, Double distance) Creates a ClusterPair linking two clusters at a given distance.Constructor parameters in ffx.numerics.clustering with type arguments of type ClusterModifierConstructorDescriptionHierarchyBuilder
(List<Cluster> clusters, DistanceMap distances) Constructs a HierarchyBuilder with an initial set of clusters and inter-cluster distances. -
Uses of Cluster in ffx.numerics.clustering.visualization
Methods in ffx.numerics.clustering.visualization that return ClusterModifier and TypeMethodDescriptionClusterComponent.getCluster()
Gets the Cluster model represented by this component.DendrogramPanel.getModel()
Methods in ffx.numerics.clustering.visualization with parameters of type ClusterModifier and TypeMethodDescriptionvoid
ClusterComponent.setCluster
(Cluster cluster) Sets the Cluster model represented by this component.void
Constructors in ffx.numerics.clustering.visualization with parameters of type ClusterModifierConstructorDescriptionClusterComponent
(Cluster cluster, boolean printName, VCoord initPoint) Constructs a visual node component for a Cluster.DendrogramFrame
(Cluster cluster) Creates a frame displaying a dendrogram for the provided clustering result.