komm.RectangularPulse
Rectangular pulse. It is a formatting pulse with impulse response given by $$ h(t) = \begin{cases} 1, & 0 \leq t < w, \\ 0, & \text{otherwise}. \end{cases}, $$ where $w$ is the width of the pulse, which must satisfy $0 \leq w \leq 1$. The rectangular pulse is depicted below for $w = 1$ (called the NRZ pulse), and for $w = 0.5$ (called the halfway RZ pulse).
__init__()
Constructor for the class.
Parameters:
-
width
(Optional[float]
) –The width $w$ of the pulse. Must satisfy $0 \leq w \leq 1$. The default value is
1.0
.
Examples:
>>> pulse = komm.RectangularPulse(width=1.0) # NRZ pulse
>>> pulse = komm.RectangularPulse(width=0.5) # Halfway RZ pulse
width
property
The width $w$ of the pulse.