public static void printErrors ( List < ImageResults > results ) { double totalError = 0 ; for ( int i = 0 ; i < results . size ( ) ; i ++ ) { ImageResults r = results . get ( i ) ; totalError += r . meanError ; System . out . printf ( "image %3d Euclidean ( mean = %7.1e max = %7.1e ) bias ( X = %8.1e Y %8.1e )\n" , i , r . meanError , r . maxError , r . biasX , r . biasY ) ; } System . out . println ( "Average Mean Error = " + ( totalError / results . size ( ) ) ) ; }
Prints out error information to standard out