easistrain.EDD.utils.calcBackground

easistrain.EDD.utils.calcBackground(xData, yData, fwhmRight, fwhmLeft, guessedPeaksIndex)[source]

Extracts the data outside of the peak bounds to fit the background

Parameters:
  • xData (ndarray)

  • yData (ndarray)

  • fwhmRight (float)

  • fwhmLeft (float)

  • guessedPeaksIndex (Sequence[float])

Return type:

ndarray