Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/lib/main.c
ViewVC logotype

Diff of /branches/pure-cfg/src/lib/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 638, Thu Mar 17 12:30:50 2011 UTC revision 639, Thu Mar 17 17:59:02 2011 UTC
# Line 70  Line 70 
70          exit (8);          exit (8);
71      }      }
72    
73        float minV = HUGE_VAL;
74        float maxV = -HUGE_VAL;
75      for (int i = 0;  i < wrld->numStrands;  i++) {      for (int i = 0;  i < wrld->numStrands;  i++) {
76          float outV = getOutf (wrld->inState[i]);          float outV = getOutf (wrld->inState[i]);
77            if (outV < minV) minV = outV;
78            if (outV > maxV) maxV = outV;
79          fprintf (outS, "%f\n", outV);          fprintf (outS, "%f\n", outV);
80      }      }
81      fclose (outS);      fclose (outS);
82    printf("value range = [%f .. %f]\n", minV, maxV);
83    
84      return 0;      return 0;
85    

Legend:
Removed from v.638  
changed lines
  Added in v.639

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0