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

Apply the inverse transform of the integer 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 956 of file zofits.h.

References data.

957  {
958  int16_t* short_data = reinterpret_cast<int16_t*>(data);
959  for (uint32_t j=2;j<numElems;j++)
960  short_data[j] = short_data[j] + (short_data[j-1]+short_data[j-2])/2;
961 
962  return numElems*sizeof(uint16_t);
963  }
float data[4 *1440]