public interface Deriving 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
DerivativeSensor implements this interface and gives a body for
this method.
| Modifier and Type | Method and Description |
|---|---|
void |
deriveAt(double raw)
Derives the data values at the given raw reading and stores it in an
internal buffer.
|
NumberFormat |
getDerivativeFormat()
Returns the decimal format to use with the first raw derivative.
|
List |
getLastDerivative(int nr)
Returns the last nr derivative values as a list.
|
boolean |
isDeriving()
Returns true if the implementing instance is really capable of
derivating
the sensor data.
|
double |
regetDerive()
Returns the last value of the derivative as a double.
|
cumulateOne, getLastRaw, getLastTime, getMaxSize, getSize, getTimeOfRead, regetRawvoid deriveAt(double raw)
double regetDerive()
List getLastDerivative(int nr)
The - number of entries to return.NumberFormat getDerivativeFormat()
boolean isDeriving()