gauss_smoothing_matrix_1D

ompy.gauss_smoothing_matrix_1D(matrix_in, E_array, fwhm, axis='Eg', truncate=3)

Smooth a matrix with a Gaussian

Function which smooths an array of counts by a Gaussian of full-width-half-maximum FWHM. Preserves number of counts.

Parameters:
  • matrix_in (array, double) – Array of inbound counts to be smoothed

  • E_array (array, double) – Array with energy calibration of matrix_in, in mid-bin calibration

  • fwhm (double or array of doubles) – The full-width-half-maximums

  • axis (int or str, optional) – The axis along which to smooth. Can be either of (0, ‘Eg’, ‘x’), (1, ‘Ex’, ‘y’)

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