public double sqDifference ( int index , double val1 , double val2 ) { double val = difference ( index , val1 , val2 ) ; return val * val ; }
Returns the squared difference of two values of an attribute .