auto-sync

This commit is contained in:
rusEfi 2015-04-08 15:04:54 -05:00
parent 37cc888846
commit ae8dd3a9f9
2 changed files with 8 additions and 2 deletions

View File

@ -53,8 +53,12 @@ public class AverageAngles {
public void printReport(PrintStream stream) {
List<Double> angles = new ArrayList<>();
stream.println("Based on " + angleData.size() + " charts");
stream.println("index,average,stdev");
double prev = 0;
for (Map.Entry<Integer, List<Double>> e : angleData.entrySet()) {
int k = e.getKey();
List<Double> 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;

View File

@ -7,5 +7,5 @@ package com.rusefi.trigger;
* 1/18/2015
*/
public interface TriggerShape {
public int getTotalToothCount();
int getTotalToothCount();
}