src/test/java/eu/digitisation/math/ArraysTest.java
@Test
    public void testStd_doubleArr() {
        System.out.println("std");
        double[] X = {1, 2, 2, 3};
        double expResult = Math.sqrt(0.5);
        double result = Arrays.std(X);
        assertEquals(expResult, result, 0.0001);
    }
/**
     * Test of std method, of class ArrayMath.
     */
Test of std method, of class ArrayMath.
Test of std method of class ArrayMath .
@Test
    public void testStd_doubleArr() {
        System.out.println("std");
        double[] X = {1, 2, 2, 3};
        double expResult = Math.sqrt(0.5);
        double result = Arrays.std(X);
        assertEquals(expResult, result, 0.0001);
    }
@ Test public void testStd_doubleArr ( ) { System . out . println ( "std" ) ; double [ ] X = { 1 , 2 , 2 , 3 } ; double expResult = Math . sqrt ( 0.5 ) ; double result = Arrays . std ( X ) ; assertEquals ( expResult , result , 0.0001 ) ; }
Test of std method, of class ArrayMath.
Test of std method of class ArrayMath .