gauss_smoothing

ompy.gauss_smoothing(double[:] array_in, double[:] E_array, double[:] fwhm, double truncate=3)

Function which smooths an array of counts by a Gaussian of full-width-half-maximum FWHM. Preserves number of counts. :param array_in: Array of inbound counts to be smoothed :type array_in: array, double :param E_array: Array with energy calibration of array_in, in

mid-bin calibration

Parameters
  • fwhm (array, double) – The full-width-half-maximums. Need to be same size as array_in

  • truncate (double, optional) – The window width of the Gaussian that is used to smoothe, in units of sigma. Defaults to 3.

Returns

Array of smoothed counts

Return type

array_out