public interface Smoothing extends Cumulating
This interface
is introduced to make it more convenient to derive one's own combination
of smoothing and/or deriving sensors. A default implementation
SmoothingSensor implements this interface and gives a body for
this method.
| Modifier and Type | Method and Description |
|---|---|
List |
getLastSmooth(int nr)
Returns the last bulk of smoothed values as a list.
|
boolean |
isSmoothing()
Returns true if the implementing instance is really smoothing the
data and should be treated seperately.
|
double |
regetSmooth()
Returns the last smoothed value as a double.
|
void |
smoothOne(double raw)
Smoothes the raw value and adds it to an internal buffer.
|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRawvoid smoothOne(double raw)
double regetSmooth()
List getLastSmooth(int nr)
nr - The number of smoothed values to be retrieved.boolean isSmoothing()