[chronojump] jumps multiple cairo graph show avgs instead of totals
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] jumps multiple cairo graph show avgs instead of totals
- Date: Wed, 10 Nov 2021 15:38:52 +0000 (UTC)
commit 2581b970a80598b05caee5218088437b2bc68a75
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Nov 10 16:36:34 2021 +0100
jumps multiple cairo graph show avgs instead of totals
src/gui/eventExecute.cs | 13 +++++++++----
src/gui/usefulObjects.cs | 6 +++++-
2 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 66af3d96e..bd1bb58a6 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -2644,8 +2644,8 @@ public class CairoPaintBarsPreJumpReactive : CairoPaintBarsPre
cb.YVariable = Catalog.GetString("Time");
cb.YUnits = "s";
- cb.VariableSerieA = Catalog.GetString("Contact time") + " (" + Catalog.GetString("total") +
") ";
- cb.VariableSerieB = Catalog.GetString("Flight time") + " (" + Catalog.GetString("total") + ")
";
+ cb.VariableSerieA = Catalog.GetString("Contact time") + " (" + Catalog.GetString("AVG") + ")
";
+ cb.VariableSerieB = Catalog.GetString("Flight time") + " (" + Catalog.GetString("AVG") + ") ";
cb.GraphInit(fontStr, ! ShowPersonNames, true); //usePersonGuides, useGroupGuides
@@ -2692,8 +2692,13 @@ public class CairoPaintBarsPreJumpReactive : CairoPaintBarsPre
{
LogB.Information("jump: " + jump.ToString());
// 1) Add data
- double valueA = jump.TcSumCaringForStartIn;
- double valueB = jump.TvSum;
+ //sum of the subjumps
+ //double valueA = jump.TcSumCaringForStartIn;
+ //double valueB = jump.TvSum;
+
+ //avg of the subjumps
+ double valueA = jump.TcAvg; //this cares for the -1 on start in. Does not count it.
+ double valueB = jump.TvAvg;
//pointA0_l.Add(new PointF(countToDraw, jump.Jumps));
pointA1_l.Add(new PointF(countToDraw, valueA));
diff --git a/src/gui/usefulObjects.cs b/src/gui/usefulObjects.cs
index 04e274cec..96c419f0c 100644
--- a/src/gui/usefulObjects.cs
+++ b/src/gui/usefulObjects.cs
@@ -183,7 +183,11 @@ public class PrepareEventGraphJumpReactive
jumpsAtSQL = SqliteJumpRj.SelectJumps (true, sessionID, personIDTemp, type,
Sqlite.Orders_by.ID_DESC, limit, allPersons); //show names on comments only
if "all persons"
- string sqlSelect = "tvAvg*jumps";
+ // sum of each subjump
+ //string sqlSelect = "tvAvg*jumps";
+ // avg of each subjump
+ string sqlSelect = "tvAvg";
+
string table = Constants.JumpRjTable;
List<double> personStats = SqliteSession.Select_MAX_AVG_MIN_EventsOfAType(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]