cr.nimble.dsp.signals.gaussian_pulse

cr.nimble.dsp.signals.gaussian_pulse(fs, T, b, fc=1000, bw=0.5, bwr=- 6, retquad=False, retenv=False, initial_time=0)[source]

Generates a Gaussian modulated sinusoid

Parameters
  • fs (float) – Sample rate of signal in Hz.

  • T (float) – Period of the signal in seconds.

  • b (float) – The location (in time) where the pulse is centered in seconds.

  • fc (float) – Center frequency of the Gaussian Pulse in Hz.

  • bw (float) – Fractional bandwidth in frequency domain of pulse.

  • bwr (float) – Reference level at which fractional bandwidth is calculated (dB).

  • retquad (bool) – Include/exclude quadrature(imaginary) part of the signal in the result

  • retenv (bool) – Include/exclude the Gaussian envelope of the signal in the result

  • initial_time (float) – time at waveform start in seconds, default is 0.

Returns

A tuple comprising of (i) t: time values in seconds at which the signal is computed. (ii) real_part: values of the real part of the signal at these time values. (iii) imag_part: values of the quadrature/imaginary part of the signal at these time values (if retquad is True). (iv) envelope: values of the Gaussian envelope of the signal at these time values (if retenv is True).

Return type

tuple

Adapted from https://github.com/scipy/scipy/blob/v1.7.1/scipy/signal/waveforms.py#L161-L258