mulan.classifier.meta
Class ConstrainedKMeans.bucketInstance
java.lang.Object
mulan.classifier.meta.ConstrainedKMeans.bucketInstance
- All Implemented Interfaces:
- Comparable
- Enclosing class:
- ConstrainedKMeans
public static class ConstrainedKMeans.bucketInstance
- extends Object
- implements Comparable
Class for representing an instance inside a bucket
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstrainedKMeans.bucketInstance
public ConstrainedKMeans.bucketInstance()
setDistances
public void setDistances(double[] x)
- Sets the distances to other instances
- Parameters:
x
- distances
setDistance
public void setDistance(double x)
- Parameters:
x
-
getDistances
public double[] getDistances()
- Returns:
getDistance
public double getDistance()
- Returns:
compareTo
public int compareTo(Object ci)
- Specified by:
compareTo
in interface Comparable