TechnologicalCosine { public static double distance(int v1[], int v2[]){ return Cosine.distance(Transformations.convertIntArrayToDoubleArray(v1), Transformations.convertIntArrayToDoubleArray(v2)); }  static int[] createTechnologyVector(int p702, int p703, int p704, int p705, int p706, int p707, int p708, int p709,int p710, int p711, int p712,int p713, int p714, int p715, int p716,int p717, int p718, int p719, int p720, int p725, int p726, int p800, int p850, int p901, int p902, int p903, int p930, int p968, int p976); static double distance(int v1[], int v2[]);  }
@Test public void test1(){ int[] v1 = new int[]{8,3,7}; int[] v2 = new int[]{9,8,4}; Asserts.assertEqualLength(v1, v2); double res = TechnologicalCosine.distance(v1, v2); Asserts.assertEquals(res, 0.11523317145016); }
@Test public void test2(){ int[] v1 = new int[]{8,-32,7,0,-45}; int[] v2 = new int[]{97,-78,41,-4,-78}; Asserts.assertEqualLength(v1, v2); double res = TechnologicalCosine.distance(v1, v2); Asserts.assertEquals(res, 0.17597282565941); }
@Test public void test3(){ int[] v1 = new int[]{248,-321,788,0,-459}; int[] v2 = new int[]{97,-78,417,-4,-7865}; Asserts.assertEqualLength(v1, v2); double res = TechnologicalCosine.distance(v1, v2); Asserts.assertEquals(res, 0.492780551664052); }