Sample Output

This output is generated with the following data (from traffic.cxx) :

 
    const double ARRIVAL_PROB = 0.1;      // Prob. of car arrival in a second.
    const unsigned int TRAVEL_TIME = 40;  // Seconds to travel between lights.
    const unsigned int TOTAL_TIME = 6000; // Total seconds in the simulation.
    const unsigned int SPAN = 30;         // How long is a light red or green?
    

How long is a light red or green:30
Probability of driver arrival during a second: 0.1
Total simulation seconds: 6000
Offset of  0 seconds results in average wait of 24.2866 seconds.
Offset of  1 seconds results in average wait of 24.5223 seconds.
Offset of  2 seconds results in average wait of 25.4144 seconds.
Offset of  3 seconds results in average wait of 26.2878 seconds.
Offset of  4 seconds results in average wait of 28.1729 seconds.
Offset of  5 seconds results in average wait of 28.205 seconds.
Offset of  6 seconds results in average wait of 29.6682 seconds.
Offset of  7 seconds results in average wait of 30.9749 seconds.
Offset of  8 seconds results in average wait of 31.7652 seconds.
Offset of  9 seconds results in average wait of 33.6403 seconds.
Offset of 10 seconds results in average wait of 32.9602 seconds.
Offset of 11 seconds results in average wait of 28.3212 seconds.
Offset of 12 seconds results in average wait of 25.1286 seconds.
Offset of 13 seconds results in average wait of 21.5429 seconds.
Offset of 14 seconds results in average wait of 19.1804 seconds.
Offset of 15 seconds results in average wait of 17.9475 seconds.
Offset of 16 seconds results in average wait of 16.6837 seconds.
Offset of 17 seconds results in average wait of 16.8402 seconds.
Offset of 18 seconds results in average wait of 16.1835 seconds.
Offset of 19 seconds results in average wait of 16.3021 seconds.
Offset of 20 seconds results in average wait of 16.0547 seconds.
Offset of 21 seconds results in average wait of 15.5378 seconds.
Offset of 22 seconds results in average wait of 15.1032 seconds.
Offset of 23 seconds results in average wait of 14.7126 seconds.
Offset of 24 seconds results in average wait of 14.1402 seconds.
Offset of 25 seconds results in average wait of 13.9057 seconds.
Offset of 26 seconds results in average wait of 14.5032 seconds.
Offset of 27 seconds results in average wait of 13.7412 seconds.
Offset of 28 seconds results in average wait of 14.29 seconds.
Offset of 29 seconds results in average wait of 13.1727 seconds.
Offset of 30 seconds results in average wait of 13.1804 seconds.
Offset of 31 seconds results in average wait of 12.4721 seconds.
Offset of 32 seconds results in average wait of 11.8489 seconds.
Offset of 33 seconds results in average wait of 12.0029 seconds.
Offset of 34 seconds results in average wait of 11.4622 seconds.
Offset of 35 seconds results in average wait of 11.3354 seconds.
Offset of 36 seconds results in average wait of 11.1269 seconds.
Offset of 37 seconds results in average wait of 9.782 seconds.
Offset of 38 seconds results in average wait of 8.58084 seconds.
Offset of 39 seconds results in average wait of 8.76014 seconds.
Offset of 40 seconds results in average wait of 8.90256 seconds.
Offset of 41 seconds results in average wait of 9.99015 seconds.
Offset of 42 seconds results in average wait of 9.89508 seconds.
Offset of 43 seconds results in average wait of 9.5908 seconds.
Offset of 44 seconds results in average wait of 10.8508 seconds.
Offset of 45 seconds results in average wait of 11.3257 seconds.
Offset of 46 seconds results in average wait of 13.2969 seconds.
Offset of 47 seconds results in average wait of 12.8803 seconds.
Offset of 48 seconds results in average wait of 13.5232 seconds.
Offset of 49 seconds results in average wait of 14.5727 seconds.
Offset of 50 seconds results in average wait of 15.8311 seconds.
Offset of 51 seconds results in average wait of 15.9463 seconds.
Offset of 52 seconds results in average wait of 16.6227 seconds.
Offset of 53 seconds results in average wait of 17.0522 seconds.
Offset of 54 seconds results in average wait of 18.86 seconds.
Offset of 55 seconds results in average wait of 19.8514 seconds.
Offset of 56 seconds results in average wait of 19.4498 seconds.
Offset of 57 seconds results in average wait of 21.8231 seconds.
Offset of 58 seconds results in average wait of 21.4299 seconds.
Offset of 59 seconds results in average wait of 21.9976 seconds.