@Test public void auto_test7(){ double[] v1 = new double[]{289, 423, 764, 31, 110, 890, 300, 130, 583, 831}; double[] v2 = new double[]{483, 639, 851, 653, 425, 49, 654, 420, 71, 625}; double res = Chebyshev.distance(v1, v2); double ref = 841; Asserts.assertDistance(ref); Asserts.assertEquals(res, ref); }
public static double distance(double[] v1,double[] v2){ Asserts.assertEqualLength(v1, v2); double[] res=new double[v1.length]; for(int i=0;i<v1.length;i++){ res[i] = Math.abs(v1[i]-v2[i]); } return CommonStats.max(res); }
Chebyshev { public static double distance(double[] v1,double[] v2){ Asserts.assertEqualLength(v1, v2); double[] res=new double[v1.length]; for(int i=0;i<v1.length;i++){ res[i] = Math.abs(v1[i]-v2[i]); } return CommonStats.max(res); } }
Chebyshev { public static double distance(double[] v1,double[] v2){ Asserts.assertEqualLength(v1, v2); double[] res=new double[v1.length]; for(int i=0;i<v1.length;i++){ res[i] = Math.abs(v1[i]-v2[i]); } return CommonStats.max(res); }  }
Chebyshev { public static double distance(double[] v1,double[] v2){ Asserts.assertEqualLength(v1, v2); double[] res=new double[v1.length]; for(int i=0;i<v1.length;i++){ res[i] = Math.abs(v1[i]-v2[i]); } return CommonStats.max(res); }  static double distance(double[] v1,double[] v2); }
Chebyshev { public static double distance(double[] v1,double[] v2){ Asserts.assertEqualLength(v1, v2); double[] res=new double[v1.length]; for(int i=0;i<v1.length;i++){ res[i] = Math.abs(v1[i]-v2[i]); } return CommonStats.max(res); }  static double distance(double[] v1,double[] v2);  }