Example:
|
W = 4 (fixed size) |
The size can increase or decrease by one
The following figure shows the effect of a variable sized window
Current item | V Input: 3 5 2 7 1 8 9 1 6 8 9 | | +-+ Sum = 3 |
|
![]() |
![]() |
|
|
|
Proof:
|