From: Michael Orlitzky Date: Fri, 9 Jul 2010 07:05:10 +0000 (-0400) Subject: Fix an off-by-one error. X-Git-Url: https://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=commitdiff_plain;h=08456f00756a4c9840d85f78ebb8b1792cc0817d Fix an off-by-one error. --- diff --git a/bin/linear_programs/trials-uniform-large b/bin/linear_programs/trials-uniform-large index 3b354e6..27b9366 100755 --- a/bin/linear_programs/trials-uniform-large +++ b/bin/linear_programs/trials-uniform-large @@ -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" diff --git a/bin/linear_programs/trials-uniform-medium b/bin/linear_programs/trials-uniform-medium index 626e9cc..dfe9864 100755 --- a/bin/linear_programs/trials-uniform-medium +++ b/bin/linear_programs/trials-uniform-medium @@ -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" diff --git a/bin/linear_programs/trials-uniform-small b/bin/linear_programs/trials-uniform-small index 2558702..5d14e76 100755 --- a/bin/linear_programs/trials-uniform-small +++ b/bin/linear_programs/trials-uniform-small @@ -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"