import java.util.*; import java.io.*; public class AnalyseSMSR { private static void show(long[]x){ int n = x.length; for (int i=0;i 0) sat++; sc.next(); nodes[count] = sc.nextLong(); count++; sc.close(); } System.out.format("%d %.2f ",n,((float)p)/100.0); System.out.print(sat +" "); System.out.print(average(solutions) +" "+ min(solutions) +" "+ median(solutions) +" "+ max(solutions) +" "); System.out.println(); } public static void main(String[] args) throws IOException { int n = Integer.parseInt(args[0]); // agents int pLo = Integer.parseInt(args[1]); // mixing probability int pHi = Integer.parseInt(args[2]); // mixing probability int pInc = Integer.parseInt(args[3]); // increment for p int lwb = Integer.parseInt(args[4]); // index of 1st results file int upb = Integer.parseInt(args[5]); // index of last results file for (int p=pLo;p<=pHi;p=p+pInc) stats(n,p,lwb,upb); } }