question: protected double updateDistance ( double currDist , double diff ) { double result ; result = currDist ; diff = Math . abs ( diff ) ; if ( diff > result ) result = diff ; return result ; }
target:  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.