public interface Predicting 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
PredictiveSensor implements this interface and gives a body for
these methods.
| Modifier and Type | Method and Description |
|---|---|
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.
|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRawvoid 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.