@Test public void auto_test18(){ double[] v1 = new double[]{-160981, 255876, -797827, 74690, 778562, -979317, -884774, 898795, 848613, -937663}; double[] v2 = new double[]{-487262, 59836, 261323, -757389, -616671, 527189, 185117, -897186, 291292, -819447}; double res = Chebyshev.distance(v1, v2); double ref = 1795981; 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);  }