diff --git a/STM/src/Util/MathUtil.java b/STM/src/Util/MathUtil.java index df36da9..99ea0fe 100644 --- a/STM/src/Util/MathUtil.java +++ b/STM/src/Util/MathUtil.java @@ -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;