Applies Thomas' DRS4 smoothing
- Parameters
-
data | where to apply it |
numElems | how many elements of type int16_t are stored in the buffer |
- Returns
- number of bytes modified
Definition at line 943 of file zofits.h.
References data.
945 int16_t* short_data =
reinterpret_cast<int16_t*
>(
data);
946 for (
int j=numElems-1;j>1;j--)
947 short_data[j] = short_data[j] - (short_data[j-1]+short_data[j-2])/2;
949 return numElems*
sizeof(int16_t);