Struct ldpc_toolbox::simulation::channel::AwgnChannel
source · pub struct AwgnChannel { /* private fields */ }Expand description
AWGN channel simulation.
This struct is used to add AWGN to symbols.
Implementations§
source§impl AwgnChannel
impl AwgnChannel
sourcepub fn new(noise_sigma: f64) -> AwgnChannel
pub fn new(noise_sigma: f64) -> AwgnChannel
Creates a new AWGN channel.
The channel noise follows a (real) normal distribution with mean zero and standard deviation sigma.
Panics
This function panics if noise_sigma is not a positive finite number.
Trait Implementations§
source§impl Clone for AwgnChannel
impl Clone for AwgnChannel
source§fn clone(&self) -> AwgnChannel
fn clone(&self) -> AwgnChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for AwgnChannel
impl Send for AwgnChannel
impl Sync for AwgnChannel
impl Unpin for AwgnChannel
impl UnwindSafe for AwgnChannel
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