FACT++  1.0
uint32_t zofits::applySMOOTHING ( char *  data,
uint32_t  numElems 
)
inlineprotected

Applies Thomas' DRS4 smoothing

Parameters
datawhere to apply it
numElemshow 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.

944  {
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;
948 
949  return numElems*sizeof(int16_t);
950  }
float data[4 *1440]