Trait Channel

Source
pub trait Channel {
    // Required method
    fn add_noise<R: Rng, T: ChannelType>(&self, rng: &mut R, symbols: &mut [T]);
}
Expand description

Channel model.

A channel model is able to add noise to a sequence of symbols, which can be either real or complex.

Required Methods§

Source

fn add_noise<R: Rng, T: ChannelType>(&self, rng: &mut R, symbols: &mut [T])

Adds noise to a sequence of symbols.

The noise is added in-place to the slice symbols. An Rng is used as source of randomness.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§