mulan.classifier.meta
Class ConstrainedKMeans.bucketInstance

java.lang.Object
  extended by 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


Constructor Summary
ConstrainedKMeans.bucketInstance()
           
 
Method Summary
 int compareTo(Object ci)
           
 double getDistance()
           
 double[] getDistances()
           
 void setDistance(double x)
           
 void setDistances(double[] x)
          Sets the distances to other instances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstrainedKMeans.bucketInstance

public ConstrainedKMeans.bucketInstance()
Method Detail

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