com.sun.labs.minion.clustering
Class ClusterElement

java.lang.Object
  extended by com.sun.labs.minion.clustering.ClusterElement

public class ClusterElement
extends java.lang.Object

A single element in a results cluster.


Field Summary
 int member
          The cluster that this element is a member of.
 double[] point
          The point in N-space representing this element.
protected  Result r
          The actual result that this element represents.
 
Constructor Summary
ClusterElement(Result r, double[] point)
          Creates a ClusterElement
 
Method Summary
 double dist(double[] p)
          Computes the distance between this cluster element an a given point in the same space.
 double[] getPoint()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

point

public double[] point
The point in N-space representing this element.


r

protected Result r
The actual result that this element represents.


member

public int member
The cluster that this element is a member of.

Constructor Detail

ClusterElement

public ClusterElement(Result r,
                      double[] point)
Creates a ClusterElement

Method Detail

getPoint

public double[] getPoint()

dist

public double dist(double[] p)
Computes the distance between this cluster element an a given point in the same space.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object