edu.udo.cs.ie.cowbots.util.cluster
Class CowCluster.HullPoint
java.lang.Object
edu.udo.cs.ie.cowbots.util.cluster.CowCluster.HullPoint
- Enclosing class:
- CowCluster
class CowCluster.HullPoint
- extends java.lang.Object
auxiliary class that holds a hull point and
it's adjacent hull points
Method Summary |
void |
computeSimilarity(int dX,
int dY,
int cX,
int cY)
this method computes the similarity of a hull point
compared to a drive vector. similarity computation
based on the scalar product of two vectors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public int x
y
public int y
left
public CowCluster.HullPoint left
right
public CowCluster.HullPoint right
marked
public boolean marked
sim
public double sim
CowCluster.HullPoint
public CowCluster.HullPoint(int x,
int y)
computeSimilarity
public void computeSimilarity(int dX,
int dY,
int cX,
int cY)
- this method computes the similarity of a hull point
compared to a drive vector. similarity computation
based on the scalar product of two vectors.
- Parameters:
cX
- cY
-