GSE++ library: reading and writing GSE waveforms
|
Elementary operator to calculate the sum, which removes differences. More...
#include "gsexx.h"
Public Member Functions | |
Tremove_diff () | |
initialize previous value to zero More... | |
intT | operator() (const intT &x) |
integrate by adding this value to the previous returned More... | |
intT | previous_value () const |
return diff value on request (for debugging) More... | |
Private Attributes | |
intT | Mxold |
previous returned value More... | |
Elementary operator to calculate the sum, which removes differences.
This class removes differences from an integer data stream by calculating a cumulative sum. For this purpose it has to remember the previous returned data value. You have to initialize an object of this class for each data stream.