New views

This commit is contained in:
Martin Bauer
2020-07-25 14:06:39 +02:00
parent aee89d799c
commit 4544f19938
12 changed files with 647 additions and 6 deletions

View File

@@ -33,7 +33,6 @@ export default class DataAnalysis {
this.activeMeasurements += newAverages.reduce((n, val) => {
return n + ((val >= analysisParameters.activeTimeThreshold) ? 1 : 0);
}, 0);
console.log("data", newDataArr, "newAverages", newAverages, "reduction", this.activeMeasurements);
// peaks
const newPeaks = this.peakDetectorSimple.addVector(newDataArr);
@@ -63,7 +62,6 @@ export default class DataAnalysis {
peakMaxWindow: peakMaxWindow,
};
}
_resetCache(analysisParameters, sessionId) {
this.movingAverage = analysisParameters ? new MovingAverage(analysisParameters.movingAverageWindowSize) : null;