Lines Matching refs:stats
979 private static void stat(PrintStream out, long[] stats, String unit, String prefix) {
980 if (stats.length < 3)
981 System.err.println("Cannot print stats.");
982 Arrays.sort(stats);
984 double median = ((stats.length & 1) == 1 ? stats[stats.length >> 1]: (stats[stats.length >> 1] + stats[1 + (stats.length >> 1)]) / 2);
986 for (int j=1;j<stats.length-1;++j) {
987 average += stats[j];
989 average /= stats.length - 2;