@Override protected double updateDistance(double currDist,double diff){
  double result;
  result=currDist;
  result+=Math.pow(Math.abs(diff),m_Order);
  return result;
}

@ Override protected double updateDistance ( double currDist , double diff ) { double result ; result = currDist ; result += Math . pow ( Math . abs ( diff ) , m_Order ) ; return result ; }
updates the current distance calculated so far with the new difference between two attributes . the difference between the attributes was calculated with the difference ( int , double , double ) method .
