Write a Python function called running statistics that takes an iterable of orderable numeric values and an…
Write a Python function called running statistics that takes an iterable of orderable numeric values and an…: a task in repo2rlenv-r2e (Harbor dataset). Each Stats instance must have exactly five fields: - size (int): the number of values in the current window. In unbounded mode ( maxlen=None )…
The task
Each `Stats` instance must have exactly five fields: - `size` (int): the number of values in the current window. In unbounded mode (`maxlen=None`), this grows from 1 upward monotonically. In windowed mode, it grows from 1 up to `maxlen` and then stays constant at `maxlen`. - `minimum`: the minimum of the values in…
Part of FineEnvs/repo2rlenv-r2e.