|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.pivotselection.ClusterPivotChooser.Pair
protected class ClusterPivotChooser.Pair
Class encapsulating two clusters and the diameters of a cluster that would be produced be merging these clusters.
Field Summary | |
---|---|
protected ClusterPivotChooser.Cluster |
cluster1
Cluster id |
protected ClusterPivotChooser.Cluster |
cluster2
Cluster id |
protected float |
radius
Covering radius of a cluster if cluster1 and cluster2 were merged. |
Constructor Summary | |
---|---|
ClusterPivotChooser.Pair(ClusterPivotChooser.Cluster cluster1,
ClusterPivotChooser.Cluster cluster2,
ClusterPivotChooser.PrecomputedDistances pd)
Creates a new pair of two cluster. |
Method Summary | |
---|---|
int |
compareTo(ClusterPivotChooser.Pair o)
|
LocalAbstractObject |
getClusteroid()
Clusteroid of the cluster that would be formed by merging the two clusters passed to the constructor. |
ClusterPivotChooser.Cluster |
getFirstCluster()
Returns the first cluster in this pair |
float |
getRadius()
Radius of the cluster that would result from merging the clusters of this pair. |
ClusterPivotChooser.Cluster |
getSecondCluster()
Returns the second cluster in this pair |
void |
update(ClusterPivotChooser.PrecomputedDistances pd)
Re-initializes the members clusteroid and radius by computing the covering ball of the cluster formed
by the first and the second cluster of this pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClusterPivotChooser.Cluster cluster1
protected ClusterPivotChooser.Cluster cluster2
protected float radius
Constructor Detail |
---|
public ClusterPivotChooser.Pair(ClusterPivotChooser.Cluster cluster1, ClusterPivotChooser.Cluster cluster2, ClusterPivotChooser.PrecomputedDistances pd)
cluster1
- the first clustercluster2
- the second clusterpd
- cache of precomputed distances between all pairs of objectsMethod Detail |
---|
public int compareTo(ClusterPivotChooser.Pair o)
compareTo
in interface java.lang.Comparable<ClusterPivotChooser.Pair>
public LocalAbstractObject getClusteroid()
public float getRadius()
public ClusterPivotChooser.Cluster getFirstCluster()
public ClusterPivotChooser.Cluster getSecondCluster()
public void update(ClusterPivotChooser.PrecomputedDistances pd)
clusteroid
and radius
by computing the covering ball of the cluster formed
by the first and the second cluster of this pair.
pd
- cache of precomputed distances between all pairs of objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |