|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.clustering.ClusterElement
public class ClusterElement
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 |
---|
public double[] point
protected Result r
public int member
Constructor Detail |
---|
public ClusterElement(Result r, double[] point)
Method Detail |
---|
public double[] getPoint()
public double dist(double[] p)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |