GaussianSmoothedSquare#
- class iqm.models.playlist.waveforms.GaussianSmoothedSquare(n_samples, square_width, gaussian_sigma, center_offset=0.0)#
Bases:
WaveformConvolution of a square pulse and a gaussian pulse.
One can think of it as a square pulse smoothed with a gaussian one, or vice versa.
\[f(t) = \frac{1}{2} \left[ \text{erf}\left(\frac{t - (c - s / 2)}{\sqrt{2 \sigma^2}}\right) - \text{erf}\left(\frac{t - (c + s / 2)}{\sqrt{2 \sigma^2}}\right) \right],\]where \(\text{erf}\) is the error function, \(c\) is
center_offset, \(s\) issquare_width, and \(\sigma\) isgaussian_sigma.Its values are in \((0, 1)\).
- Parameters:
Module:
iqm.models.playlist.waveformsAttributes
center_offsetsquare_widthgaussian_sigman_samplesRequested number of samples for the waveform.
Methods