-
sdr.half_sine(sps: int, span: int =
1
, norm: 'power' | 'energy' | 'passband' ='energy'
) NDArray[float_] Returns a half-sine pulse shape.
- Parameters:¶
- sps: int¶
The number of samples per symbol.
- span: int =
1
¶ The length of the filter in symbols. The length of the filter is
span * sps
samples, but only the centersps
samples are non-zero. The only reason forspan
to be larger than 1 is to add delay to the filter.- norm: 'power' | 'energy' | 'passband' =
'energy'
¶ Indicates how to normalize the pulse shape.
"power"
: The pulse shape is normalized so that the maximum power is 1."energy"
: The pulse shape is normalized so that the total energy is 1."passband"
: The pulse shape is normalized so that the passband gain is 1.
- Returns:¶
The half-sine pulse shape.
Examples¶
In [1]: h_half_sine = sdr.half_sine(10) In [2]: plt.figure(figsize=(8, 4)); \ ...: sdr.plot.impulse_response(h_half_sine); ...: In [3]: plt.figure(figsize=(8, 4)); \ ...: sdr.plot.magnitude_response(h_half_sine); ...:
See the Pulse shapes example.