auto-sync
This commit is contained in:
parent
37cc888846
commit
ae8dd3a9f9
|
@ -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;
|
||||
|
|
|
@ -7,5 +7,5 @@ package com.rusefi.trigger;
|
|||
* 1/18/2015
|
||||
*/
|
||||
public interface TriggerShape {
|
||||
public int getTotalToothCount();
|
||||
int getTotalToothCount();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue