scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
gausspulse(t, fc=1000, bw=0.5, bwr=-6, tpr=-60, retquad=False, retenv=False)

exp(-a t^2) exp(1j*2*pi*fc*t).

If :None:None:`retquad` is True, then return the real and imaginary parts (in-phase and quadrature). If :None:None:`retenv` is True, then return the envelope (unmodulated signal). Otherwise, return the real part of the modulated sinusoid.

Parameters

t : ndarray or the string 'cutoff'

Input array.

fc : float, optional

Center frequency (e.g. Hz). Default is 1000.

bw : float, optional

Fractional bandwidth in frequency domain of pulse (e.g. Hz). Default is 0.5.

bwr : float, optional

Reference level at which fractional bandwidth is calculated (dB). Default is -6.

tpr : float, optional

If t is 'cutoff', then the function returns the cutoff time for when the pulse amplitude falls below :None:None:`tpr` (in dB). Default is -60.

retquad : bool, optional

If True, return the quadrature (imaginary) as well as the real part of the signal. Default is False.

retenv : bool, optional

If True, return the envelope of the signal. Default is False.

Returns

yI : ndarray

Real part of signal. Always returned.

yQ : ndarray

Imaginary part of signal. Only returned if :None:None:`retquad` is True.

yenv : ndarray

Envelope of signal. Only returned if :None:None:`retenv` is True.

Return a Gaussian modulated sinusoid:

See Also

scipy.signal.morlet

Examples

Plot real component, imaginary component, and envelope for a 5 Hz pulse, sampled at 100 Hz for 2 seconds:

>>> from scipy import signal
... import matplotlib.pyplot as plt
... t = np.linspace(-1, 1, 2 * 100, endpoint=False)
... i, q, e = signal.gausspulse(t, fc=5, retquad=True, retenv=True)
... plt.plot(t, i, t, q, t, e, '--')
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._wavelets.morlet scipy.signal._wavelets.cwt scipy.signal._waveforms.gausspulse

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/_waveforms.py#161
type: <class 'function'>
Commit: