|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Smoothing
The interface marking smoothing capabilities of a sensor. It is an extension to the cumulative interface because smoothing datas will always require storing some data. As a consequence, no methods for access to the time axis are given here. They are inherited from the base interface.
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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface stella.sensor.Cumulating |
|---|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRaw |
| Method Detail |
|---|
void smoothOne(double raw)
double regetSmooth()
List getLastSmooth(int nr)
nr - The number of smoothed values to be retrieved.boolean isSmoothing()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||