3 public static void main(String args[]) {
5 boolean outputerr=false;
6 boolean normalize=false;
7 boolean timeinsec=false;
9 for(;ii<args.length;ii++) {
10 if (args[ii].equals("-err"))
12 else if (args[ii].equals("-sec")) {
14 } else if (args[ii].equals("-norm")) {
17 norma=Double.parseDouble(args[ii]);
22 String filename=args[ii];
25 BufferedReader br=new BufferedReader(new FileReader(filename));
26 double vals[]=new double[1000];
29 while((nextline=br.readLine())!=null) {
31 int start=nextline.indexOf("TIME=")+5;
34 start=nextline.indexOf("Time: ")+6;
36 start=nextline.indexOf("Time = ")+7;
38 start=nextline.indexOf("Time taken for kernel 1 is ")+28;
40 start=nextline.indexOf("Time taken for kernel 1 is ")+27;
42 start=nextline.indexOf("Elapsed time = ")+18;
44 start=nextline.indexOf("Elapsed time = ");
46 start=nextline.indexOf("Learn time = ");
50 start+=(new String("Learn time = ")).length();
52 start+=(new String("Elapsed time = ")).length();
61 nextline=nextline.substring(start, nextline.length());
62 int lastindex=nextline.indexOf(' ');
64 lastindex=nextline.length();
65 String num=nextline.substring(0, lastindex);
66 v=Double.parseDouble(num);
75 for(int i=0;i<numvals;i++) {
78 double ave=((double)sum)/numvals;
80 for(int i=0;i<numvals;i++) {
81 double delta=vals[i]-ave;
84 diff=diff/(numvals-1);
85 double std=Math.sqrt(diff);
86 double err=std/Math.sqrt(numvals);
88 System.out.println(ave);
90 System.out.println(err);
91 } catch (Exception e) {