gauss_smoothing_matrix_1D

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

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’)