From ae8dd3a9f964aff6afee1ac06bc3a572257b42f2 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Wed, 8 Apr 2015 15:04:54 -0500 Subject: [PATCH] auto-sync --- java_console/models/src/com/rusefi/AverageAngles.java | 8 +++++++- .../models/src/com/rusefi/trigger/TriggerShape.java | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/java_console/models/src/com/rusefi/AverageAngles.java b/java_console/models/src/com/rusefi/AverageAngles.java index 5f1407a420..29fb6fdb13 100644 --- a/java_console/models/src/com/rusefi/AverageAngles.java +++ b/java_console/models/src/com/rusefi/AverageAngles.java @@ -53,8 +53,12 @@ public class AverageAngles { public void printReport(PrintStream stream) { List angles = new ArrayList<>(); + stream.println("Based on " + angleData.size() + " charts"); + stream.println("index,average,stdev"); + double prev = 0; + for (Map.Entry> e : angleData.entrySet()) { int k = e.getKey(); List v = e.getValue(); @@ -70,7 +74,9 @@ public class AverageAngles { angles.add(mean); - stream.println(k + "," + mean + "," + sdv); + double diff = mean - prev; + prev = mean; + stream.println(k + "," + mean + "," + sdv + "," + diff); } if (angleData.isEmpty()) return; diff --git a/java_console/models/src/com/rusefi/trigger/TriggerShape.java b/java_console/models/src/com/rusefi/trigger/TriggerShape.java index c357b2fd46..12e3559434 100644 --- a/java_console/models/src/com/rusefi/trigger/TriggerShape.java +++ b/java_console/models/src/com/rusefi/trigger/TriggerShape.java @@ -7,5 +7,5 @@ package com.rusefi.trigger; * 1/18/2015 */ public interface TriggerShape { - public int getTotalToothCount(); + int getTotalToothCount(); }