]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Fix an off-by-one error.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 9 Jul 2010 07:05:10 +0000 (03:05 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 9 Jul 2010 07:05:10 +0000 (03:05 -0400)
bin/linear_programs/trials-uniform-large
bin/linear_programs/trials-uniform-medium
bin/linear_programs/trials-uniform-small

index 3b354e6a1c314a693d8b7492d7c0fac7f397d5ea..27b9366a1b9f87eea3f5566e2a016801bec29da2 100755 (executable)
@@ -73,7 +73,7 @@ for idx in range(0, NUM_TRIALS):
     if solution_string in solutions:
         solutions[solution_string] += 1
     else:
-        solutions[solution_string] = 0
+        solutions[solution_string] = 1
 
 
 print "Solution Vector : Count"
index 626e9cc0c6e1adc649270cae104212d075bc7c8c..dfe9864195c0ee9db01f5e451ec272ece7ae446d 100755 (executable)
@@ -73,7 +73,7 @@ for idx in range(0, NUM_TRIALS):
     if solution_string in solutions:
         solutions[solution_string] += 1
     else:
-        solutions[solution_string] = 0
+        solutions[solution_string] = 1
 
 
 print "Solution Vector : Count"
index 255870221fda498bc9b1a50b157b1b28dd8b8c67..5d14e76727e4366ec494004ac1370b384b5e30ad 100755 (executable)
@@ -73,7 +73,7 @@ for idx in range(0, NUM_TRIALS):
     if solution_string in solutions:
         solutions[solution_string] += 1
     else:
-        solutions[solution_string] = 0
+        solutions[solution_string] = 1
 
 
 print "Solution Vector : Count"