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.
2 parents 943856f + 6261528 commit b904819Copy full SHA for b904819
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