Class MovingAverageFilter
- java.lang.Object
-
- com.lightningrobotics.common.util.filter.MovingAverageFilter
-
- All Implemented Interfaces:
ValueFilter
public class MovingAverageFilter extends java.lang.Object implements ValueFilter
-
-
Constructor Summary
Constructors Constructor Description MovingAverageFilter(int boxes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
filter(double value)
double
get()
void
reset()
-
-
-
Method Detail
-
reset
public void reset()
- Specified by:
reset
in interfaceValueFilter
-
filter
public double filter(double value)
- Specified by:
filter
in interfaceValueFilter
-
get
public double get()
- Specified by:
get
in interfaceValueFilter
-
-