pub struct ChannelImpairment { /* private fields */ }Expand description
Streaming channel impairment model for complex baseband samples.
Optional stages are applied in this order:
- Channel convolution
- Doppler shift
- Non-linearity
- Additive white Gaussian noise (AWGN)
Implementations§
Trait Implementations§
Source§impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelImpairment
impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelImpairment
Source§fn process(
&mut self,
data_in: &[Complex<f64>],
) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn process( &mut self, data_in: &[Complex<f64>], ) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
Source§impl StreamOperatorManagement for ChannelImpairment
impl StreamOperatorManagement for ChannelImpairment
Auto Trait Implementations§
impl Freeze for ChannelImpairment
impl RefUnwindSafe for ChannelImpairment
impl Send for ChannelImpairment
impl Sync for ChannelImpairment
impl Unpin for ChannelImpairment
impl UnsafeUnpin for ChannelImpairment
impl UnwindSafe for ChannelImpairment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more