public class Window extends Object
| Constructor and Description |
|---|
Window(int size)
A gliding window for computing the average of a fixed number of values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double value)
Add a value to the window, maybe discarding a previous value.
|
double |
average()
Compute the average of values currently in the window.
|
Copyright © 2017. All rights reserved.