torchsig.utils.dsp.estimate_tone_bandwidth

torchsig.utils.dsp.estimate_tone_bandwidth(num_samples: int, sample_rate: float)[source]

Estimate the bandwidth of a tone

The bandwidth of a tone is completely defined by the number of samples in the time-series.

Parameters:
  • num_samples (int) – The length of the tone in samples.

  • sample_rate (float) – The sample rate associated with the tone.

Returns:

Bandwidth estimate of the tone

Return type:

np.ndarray