[chronojump] Fixed small error on GetForceMaxAvgInWindow



commit 124f107915654d8864fde153bbf8e269f475722e
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 15 18:34:22 2021 +0100

    Fixed small error on GetForceMaxAvgInWindow

 src/forceSensor.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 6d8eefde..f7eb6a54 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -994,7 +994,7 @@ public class ForceSensorCapturePoints
                //note "count" has the window size in samples
 
                // 4) continue until the end (countB)
-               for(int j = i+1; j < countB; j ++)
+               for(int j = i; j < countB; j ++)
                {
                        sum -= forces[j - count];
                        sum += forces[j];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]