AbsMax¶
Running absolute max.
Attributes¶
-
abs_max (float)
The current absolute max.
Examples¶
from river import stats
X = [1, -4, 3, -2, 5, -6]
abs_max = stats.AbsMax()
for x in X:
abs_max.update(x)
print(abs_max.get())
1
4
4
4
5
6
Methods¶
get
Return the current value of the statistic.
update
Update the called instance.
Parameters
- x — 'numbers.Number'