Esempio n. 1
0
 @Test
 public final void testVal() {
   double[] pos = new double[2];
   for (int i = 0; i < X.length; i++) {
     pos[0] = X[i];
     pos[1] = Y[i];
     assertEquals(
         "Bad accuracy for x=" + pos[0] + ", y=" + pos[1] + " in gaussian value.",
         val[i],
         g.val(pos, params),
         TOLERANCE);
   }
 }