public double SquaredDistance(ClusterPoint other)
 {
     double xComp = x - other.x;
     double yComp = y - other.y;
     return xComp * xComp + yComp * yComp;
 }
 public void updateDB(ClusterPoint other)
 {
     dbDistance = (dbDistance / (dbCount + 1)) + SquaredDistance(other) / (dbCount + 1);
 }
 public void AdjustCentroid(ClusterPoint other)
 {
     x = ((count * x) + other.x)/(count+1);
     y = ((count * y) + other.y )/ (count + 1);
     count++;
 }