Skip to content

Commit

Permalink
fix: typos of spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored and juaduan committed Jul 8, 2024
1 parent 0bac618 commit 8a6c391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anomaly_detector/univariate/period/period_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def period_detection(series, trend_type=DEFAULT_TREND_TYPE, thresh=DEFAULT_PERIO
period = SimpleDetector.detect(series, granularity, interval)
if period:
return [period, 0] if return_period_source else period
specturm_period = SpectrumDetector.detect(series, trend_type=trend_type, thresh=thresh, min_var=min_var, detector_type=detector_type)
return [specturm_period, 1] if return_period_source else specturm_period
spectrum_period = SpectrumDetector.detect(series, trend_type=trend_type, thresh=thresh, min_var=min_var, detector_type=detector_type)
return [spectrum_period, 1] if return_period_source else spectrum_period

0 comments on commit 8a6c391

Please sign in to comment.