komm.ManchesterPulse
Manchester pulse. It is a pulse with waveform given by $$ h(t) = \begin{cases} -1, & 0 \leq t < 1/2, \\ 1, & 1/2 \leq t < 1, \\ 0, & \text{otherwise}, \end{cases} $$ and spectrum given by $$ \hat{h}(f) = \operatorname{sinc}^2 \left( \frac{f}{2} \right) \, \sin^2 \left( \frac{\pi f}{2} \right). $$
The Manchester pulse is depicted below.
Attributes:
(No attributes)
Examples:
>>> pulse = komm.ManchesterPulse()
>>> pulse.waveform([-0.50, -0.25, 0.00, 0.25, 0.50, 0.75, 1.00])
array([ 0., 0., -1., -1., 1., 1., 0.])
>>> pulse.spectrum([-0.75, -0.50, -0.25, 0.00, 0.25, 0.50, 0.75]).round(4)
array([0.5249, 0.4053, 0.1391, 0. , 0.1391, 0.4053, 0.5249])