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:
print(abs_max.update(x).get())
1
4
4
4
5
6
Methods¶
get
Return the current value of the statistic.
update
Update and return the called instance.
Parameters
- x — 'numbers.Number'