Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Moving Average from Data Stream
Bookmark
Input
Standard
Larger Window
Small Window
Custom
windowSize
=
3
,
values
=
[1, 10, 3, 5]
1
10
3
5
keep the average of the last 3 value(s) as the stream flows
sum =
0
algo
master
.
io
Step:
Initialize MovingAverage with window size 3.
0 / 23
Input
Standard
Larger Window
Small Window
Custom
windowSize
=
3
,
values
=
[1, 10, 3, 5]
0 / 23
1
10
3
5
keep the average of the last 3 value(s) as the stream flows
sum =
0
algo
master
.
io
Step:
Initialize MovingAverage with window size 3.