src/test/java/eu/digitisation/math/ArraysTest.java
@Test
    public void testCov_doubleArr_doubleArr() {
        System.out.println("cov");
        double[] X = {1, 2, 3};
        double[] Y = {1, 2, 3};
        double expResult = 2.0/3;
        double result = Arrays.cov(X, Y);
        assertEquals(expResult, result, 0.001);
    }
/**
     * Test of cov method, of class ArrayMath.
     */
Test of cov method, of class ArrayMath.
Test of cov method of class ArrayMath .
@Test
    public void testCov_doubleArr_doubleArr() {
        System.out.println("cov");
        double[] X = {1, 2, 3};
        double[] Y = {1, 2, 3};
        double expResult = 2.0/3;
        double result = Arrays.cov(X, Y);
        assertEquals(expResult, result, 0.001);
    }
@ Test public void testCov_doubleArr_doubleArr ( ) { System . out . println ( "cov" ) ; double [ ] X = { 1 , 2 , 3 } ; double [ ] Y = { 1 , 2 , 3 } ; double expResult = 2.0 / 3 ; double result = Arrays . cov ( X , Y ) ; assertEquals ( expResult , result , 0.001 ) ; }
Test of cov method, of class ArrayMath.
Test of cov method of class ArrayMath .