diff --git a/client/src/components/pods/anomaly_pod.ts b/client/src/components/pods/anomaly_pod.ts index 6395958..920cb42 100644 --- a/client/src/components/pods/anomaly_pod.ts +++ b/client/src/components/pods/anomaly_pod.ts @@ -8,7 +8,6 @@ import { SegmentsSet } from '@/types/segment_set'; export type UpdateDataCallback = (range: TimeRange) => Promise<{ timeserie: LineTimeSerie[], - hsr: LineTimeSerie[], segments: Segment[] }>; @@ -21,7 +20,6 @@ export class AnomalyPod extends HasticPod { segmentSet: SegmentsSet ) { super(el, udc, segmentSet) - this.fetchData(); } @@ -39,7 +37,6 @@ export class AnomalyPod extends HasticPod { .then(resp => { this.updateSegments(resp.segments); this.updateData(resp.timeserie, undefined, true); - console.log(resp.hsr); }) .catch(() => { /* set "error" message */ }) } diff --git a/server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs b/server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs index 094bf1f..c0451c3 100644 --- a/server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs +++ b/server/src/services/analytic_service/analytic_unit/anomaly_analytic_unit.rs @@ -81,7 +81,7 @@ impl AnalyticUnit for AnomalyAnalyticUnit { for t in 1..ts.len() { let alpha = self.config.alpha; - let stv = alpha * ts[t].1 + (1.9 - alpha) * sts[t - 1].1; + let stv = alpha * ts[t].1 + (1.0 - alpha) * sts[t - 1].1; sts.push((ts[t].0, stv)); }