public class MovingAverage extends Object
width
values added
. The average can be initialized
to some value (or starts
as 0, i.e., as if width
0 values had been added)Constructor and Description |
---|
MovingAverage(int width) |
Modifier and Type | Method and Description |
---|---|
void |
add(double value) |
double |
getAverage() |
void |
init(double initialValue) |
Copyright © 2015–2021 Fiji. All rights reserved.