We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943856f commit 6261528Copy full SHA for 6261528
orangecontrib/timeseries/functions.py
@@ -68,7 +68,7 @@ def _significant_periods(periods, pgram):
68
periods = periods[::-1]
69
pgram = pgram[::-1]
70
# Scale and extract significant
71
- pgram = (pgram - pgram.min()) / pgram.ptp()
+ pgram = (pgram - pgram.min()) / np.ptp(pgram)
72
significant = argrelextrema(pgram, np.greater, order=5)
73
return periods[significant], pgram[significant]
74
0 commit comments