Real2Complex¶
- class baseband_tasks.conversion.Real2Complex(ih, samples_per_frame=None)[source] [edit on github]¶
Bases:
baseband_tasks.base.TaskBase
Convert a real baseband signal to a complex baseband signal.
This task computes the analytic representation of the input signal via a Hilbert transform, throwing away negative frequency components. Then, the signal is shifted in frequency domain by -B/2 where B is the bandwidth of the signal. Finally, the signal is decimated by a factor of 2, which results in the complex baseband representation of the input signal.
- Parameters
- ihtask or
baseband
stream reader Input data stream, with time as the first axis.
- samples_per_frameint, optional
Number of complete output samples per frame (see Notes). Default: Half the number of samples per frame in the input stream.
- ihtask or
- Raises
- ValueError
If
ih
has complex data.
See also
baseband_tasks.fourier.fft_maker
to select the FFT package used.
Notes
This function assumes the input signal is a causal signal.
References
Methods Summary
task
(data)Methods Documentation
- task(data)[source] [edit on github]¶