Class TimedMovingAverage
java.lang.Object
com.stuypulse.stuylib.streams.numbers.filters.TimedMovingAverage
- All Implemented Interfaces:
IFilter
A Simple Moving Average where instead of averaging the past x values, you average all the values
given in the last x seconds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
get
(double next) Get next value in Filter based on the next value given
-
Constructor Details
-
TimedMovingAverage
Make Timed Moving Average with time span- Parameters:
time
- time span for which to average
-
-
Method Details