edu.udo.cs.ie.cowbots.util.cluster
Class CowCluster.HullPoint

Package class diagram package CowCluster.HullPoint
java.lang.Object
  extended by 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


Field Summary
 CowCluster.HullPoint left
           
 boolean marked
           
 CowCluster.HullPoint right
           
 double sim
           
 int x
           
 int y
           
 
Constructor Summary
CowCluster.HullPoint(int x, int y)
           
 
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
 

Field Detail

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
Constructor Detail

CowCluster.HullPoint

public CowCluster.HullPoint(int x,
                            int y)
Method Detail

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 -