double function ( double arg0 , double arg1 ) { double loc0 = arg1 - arg0 ; if ( loc0 > 0.5 ) { return loc0 - 1.0 ; } if ( loc0 <= - 0.5 ) { return loc0 + 1.0 ; } return loc0 ; }
distance between two locations , including direction of the change positive/negative . when given two values on opposite ends of the keyspace , it will return +0.5 . the behaviour is undefined for invalid locations . concode_field_sep double LOCATION_INVALID concode_field_sep double getLocation concode_elem_sep double distanceAllowInvalid concode_elem_sep double distance concode_elem_sep double distance concode_elem_sep double normalize concode_elem_sep boolean equals concode_elem_sep boolean isValid concode_elem_sep double simpleDistance