[chronojump] processMultiDatabases process different distMin by exercise



commit 0da63bdba8edfe2a6361b6a980ae92efa65ee281
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jan 16 16:39:24 2020 +0100

    processMultiDatabases process different distMin by exercise

 processMultiDatabases/processMultiDatabases.cs | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/processMultiDatabases/processMultiDatabases.cs b/processMultiDatabases/processMultiDatabases.cs
index b09263b7..9a90805f 100644
--- a/processMultiDatabases/processMultiDatabases.cs
+++ b/processMultiDatabases/processMultiDatabases.cs
@@ -96,7 +96,9 @@ using System.Collections.Generic; //List<T>
 class ProcessMultiDatabases
 {
        private bool debug = false; //on debug just 5 sets of each compDB-exercise are used
-       private int distMin = 20; //distMinSitToStand = 20; TODO: do this by exercise, before study what 
range of reps we have at each exercise starting with distMin = 5. In jump better lower
+       private int distMinBiceps = 10;         //study what range of reps we have at each exercise starting 
with distMin = 5.
+       private int distMinJump = 5;            //study what range of reps we have at each exercise starting 
with distMin = 5.
+       private int distMinSittostand = 10;     //study what range of reps we have at each exercise starting 
with distMin = 5.
        private Sqlite sqlite;
        TextWriter writer;
 
@@ -146,6 +148,14 @@ class ProcessMultiDatabases
        {
                List<EncoderSQL> list = sqlite.SelectEncoder (exerciseID);
 
+               int distMin = 5;
+               if(exerciseString == ComputerDB.ExerciseString.BICEPSCURL)
+                       distMin = distMinBiceps;
+               else if(exerciseString == ComputerDB.ExerciseString.JUMP)
+                       distMin = distMinJump;
+               else if(exerciseString == ComputerDB.ExerciseString.SITTOSTAND)
+                       distMin = distMinSittostand;
+
                int count = 0;
                foreach(EncoderSQL eSQL in list)
                {


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