Package elki.clustering.correlation
Class ORCLUS.ProjectedEnergy
- java.lang.Object
-
- elki.clustering.correlation.ORCLUS.ProjectedEnergy
-
- All Implemented Interfaces:
java.lang.Comparable<ORCLUS.ProjectedEnergy>
- Enclosing class:
- ORCLUS
private static final class ORCLUS.ProjectedEnergy extends java.lang.Object implements java.lang.Comparable<ORCLUS.ProjectedEnergy>
Encapsulates the projected energy for a cluster.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ORCLUS.ORCLUSCluster
cluster
Resulting merged cluster(package private) int
i
Origin cluster indexes(package private) int
j
Origin cluster indexes(package private) double
projectedEnergy
Projected energy
-
Constructor Summary
Constructors Constructor Description ProjectedEnergy(int i, int j, ORCLUS.ORCLUSCluster cluster, double projectedEnergy)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ORCLUS.ProjectedEnergy o)
Compares this object with the specified object for order.
-
-
-
Field Detail
-
i
int i
Origin cluster indexes
-
j
int j
Origin cluster indexes
-
cluster
ORCLUS.ORCLUSCluster cluster
Resulting merged cluster
-
projectedEnergy
double projectedEnergy
Projected energy
-
-
Constructor Detail
-
ProjectedEnergy
ProjectedEnergy(int i, int j, ORCLUS.ORCLUSCluster cluster, double projectedEnergy)
Constructor.- Parameters:
i
- First cluster idj
- Second cluster idcluster
- Resulting merged clusterprojectedEnergy
- Projected energy
-
-
Method Detail
-
compareTo
public int compareTo(ORCLUS.ProjectedEnergy o)
Compares this object with the specified object for order.- Specified by:
compareTo
in interfacejava.lang.Comparable<ORCLUS.ProjectedEnergy>
- Parameters:
o
- the Object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
-