GSE++ library: reading and writing GSE waveforms
|
Elementary operator to calculate differences. More...
#include "gsexx.h"
Public Member Functions | |
Tapply_diff () | |
initialize (set previous value to zero) More... | |
int | operator() (const intT &x) |
return difference to previous value and remember this More... | |
intT | previous_value () const |
return diff value on request (for debugging) More... | |
Private Attributes | |
intT | Mxold |
previous value in stream More... | |
Elementary operator to calculate differences.
This class applies differences to an integer data stream. For this purpose it has to remember the previous data value. You have to initialize an object of this class for each data stream.