|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Predicting
The interface marking predictive capabilities of a sensor. It is an extension to the cumulative interface because predicting datas will always require storing some past 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
PredictiveSensor implements this interface and gives a body for
these methods.
| Method Summary | |
|---|---|
List |
getLastPredict(int nr)
Returns the last bulk of predicted values as a list. |
boolean |
isPredicting()
Returns true if the implementing instance is really predicting data and should be treated seperately. |
boolean |
isReliable()
Returns true if the prediction can be trusted. |
void |
predictFrom(double raw)
Predicts from the raw value and adds it to an internal buffer. |
double |
regetPredict()
Returns the last predicted value as a double. |
| Methods inherited from interface stella.sensor.Cumulating |
|---|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRaw |
| Method Detail |
|---|
void predictFrom(double raw)
double regetPredict()
List getLastPredict(int nr)
nr - The number of predicted values to be retrieved.boolean isPredicting()
boolean isReliable()
Toggling
instance, but should rather be used to judge the result returned from the
toggling instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||