Skip to content

Commit

Permalink
Merge pull request #1 from messyidea/patch-1
Browse files Browse the repository at this point in the history
Fix bug in sample function
  • Loading branch information
lichenliang-whu authored May 7, 2018
2 parents 48d83ec + 8a2f914 commit ca9a7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STM/src/Util/MathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args) {
public static int sample(double[] raw) {

for (int i = 1; i < raw.length; i++) {
raw[i] += raw[i] + raw[i - 1];
raw[i] += raw[i - 1];
}
if (raw[raw.length - 1] == 0)
return 0;
Expand Down

0 comments on commit ca9a7a3

Please sign in to comment.