Expand description
Test waveforms as functions of time, following scipy.signal: sawtooth, square (with a
duty cycle), gausspulse, chirp (linear, quadratic, logarithmic, hyperbolic), sweep_poly
and unit_impulse.
See the book entry Partial fractions, zoom FFT and waveforms.
Structs§
- Gauss
Pulse - The in-phase part, quadrature part and envelope of a Gaussian-modulated sinusoid.
Enums§
- Chirp
Method - How the frequency of a
chirpmoves fromf0att = 0tof1att = t1.
Functions§
- chirp
- A swept-frequency cosine
cos(φ(t) + φ₀)(SciPy’schirp,phiin degrees), where the phaseφ(t) = 2π ∫₀ᵗ f(τ) dτintegrates the instantaneous frequency of the chosen sweep. - gausspulse
exp(−a t²) exp(2πi f_c t)(SciPy’sgausspulse), withachosen so that the spectrum’s width atbwrdB (−6 by default) is the fractionbwoff_c.- gausspulse_
cutoff - The time after which the envelope of
gausspulsestays belowtprdB (SciPy’sgausspulse('cutoff', …)). - sawtooth
- A sawtooth of period
2πrising from −1 to 1 over the firstwidth · 2πand falling back over the rest (SciPy’ssawtooth);width = 0.5gives a triangle wave.NaNfor a width outside[0, 1]. - square_
wave - A square wave of period
2π: +1 for the firstduty · 2π, −1 after (SciPy’ssquare). - sweep_
poly - A cosine whose instantaneous frequency is the polynomial
poly(t)(highest power first; SciPy’ssweep_poly):cos(2π ∫₀ᵗ poly + φ₀),phiin degrees. - unit_
impulse - A unit impulse of length
nat indexidx(SciPy’sunit_impulse).