edu.stanford.math.clustering
public abstract class HierarchicalClustering extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
INFINITY |
protected double[] |
mergeDistances |
protected int[][] |
mergedPairs |
protected AbstractIntMetricSpace |
metricSpace |
Constructor and Description |
---|
HierarchicalClustering(AbstractIntMetricSpace metricSpace) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.util.Set<java.lang.Integer>> |
getImpliedClusters(DisjointSetSystem setSystem) |
static java.util.List<gnu.trove.TIntHashSet> |
getImpliedClustersTrove(DisjointSetSystem setSystem) |
double[] |
getMergedDistances() |
abstract void |
performClustering() |
DisjointSetSystem |
thresholdByDistance(double maxDistance) |
DisjointSetSystem |
thresholdByNumClusters(int numClusters) |
public static double INFINITY
protected final AbstractIntMetricSpace metricSpace
protected double[] mergeDistances
protected int[][] mergedPairs
public HierarchicalClustering(AbstractIntMetricSpace metricSpace)
public double[] getMergedDistances()
public static java.util.List<java.util.Set<java.lang.Integer>> getImpliedClusters(DisjointSetSystem setSystem)
public static java.util.List<gnu.trove.TIntHashSet> getImpliedClustersTrove(DisjointSetSystem setSystem)
public DisjointSetSystem thresholdByDistance(double maxDistance)
public DisjointSetSystem thresholdByNumClusters(int numClusters)
public abstract void performClustering()