@Override public void assertEquals(String message,Object expectedObj,Object actualObj){
  ANOVAMatrix expected=(ANOVAMatrix)expectedObj;
  ANOVAMatrix actual=(ANOVAMatrix)actualObj;
  message=message + " - ANOVA-Matrix \"" + actual.getSource()+ "\" does not match the expected Matrix";
  double[][] expectedProbabilities=expected.getProbabilities();
  double[][] actualProbabilities=actual.getProbabilities();
  for (int i=0; i < expectedProbabilities.length; i++) {
    for (int j=0; j < expectedProbabilities[i].length; j++) {
      Assert.assertEquals(message + " : probabilities are not equal",expectedProbabilities[i][j],actualProbabilities[i][j],1E-15);
    }
  }
  Assert.assertEquals(message + " : significance levels are not equal",expected.getSignificanceLevel(),actual.getSignificanceLevel(),1E-15);
}

@ Override public void assertEquals ( String message , Object expectedObj , Object actualObj ) { ANOVAMatrix expected = ( ANOVAMatrix ) expectedObj ; ANOVAMatrix actual = ( ANOVAMatrix ) actualObj ; message = message + " - ANOVA-Matrix \"" + actual . getSource ( ) + "\" does not match the expected Matrix" ; double [ ] [ ] expectedProbabilities = expected . getProbabilities ( ) ; double [ ] [ ] actualProbabilities = actual . getProbabilities ( ) ; for ( int i = 0 ; i < expectedProbabilities . length ; i ++ ) { for ( int j = 0 ; j < expectedProbabilities [ i ] . length ; j ++ ) { Assert . assertEquals ( message + " : probabilities are not equal" , expectedProbabilities [ i ] [ j ] , actualProbabilities [ i ] [ j ] , 1E-15 ) ; } } Assert . assertEquals ( message + " : significance levels are not equal" , expected . getSignificanceLevel ( ) , actual . getSignificanceLevel ( ) , 1E-15 ) ; }
tests two anova - matrixes by comparing all values
