MaxΒΆ
Running max.
AttributesΒΆ
-
max (float)
The current max.
ExamplesΒΆ
>>> from river import stats
>>> X = [1, -4, 3, -2, 5, -6]
>>> _max = stats.Max()
>>> for x in X:
... print(_max.update(x).get())
1
1
3
3
5
5
MethodsΒΆ
get
Return the current value of the statistic.
update
Update and return the called instance.
Parameters
- x (numbers.Number)