cbadc.utilities.find_n_sinusoidals

cbadc.utilities.find_n_sinusoidals(spectrum: ndarray, n: int, mask_width: int, min_peak_dist: int = None)[source]

Find the n largest peaks in the spectrum and return indexes.

Parameters
  • spectrum (ndarray) – a power spectral density or equivalent.

  • n (int) – number of peaks to be considered.

  • mask_width (int) – the width of the returned mask for each peak considered.

  • min_peak_dist (int) – the minimum distance between two peak (such that they are still considered separate peaks). Defaults to mask_width//2.