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 (either real or complex).
When the channel is real, the channel noise follows a (real) normal
distribution with mean zero and standard deviation noise_sigma
. When
the channel is complex, the channel noise follows a circularly symmetric
normal distribution with mean zero and standard deviation of its real
and imaginary part noise_sigma
.
§Panics
This function panics if noise_sigma
is not a positive finite number.
Trait Implementations§
Source§impl Channel for AwgnChannel
impl Channel for AwgnChannel
Source§impl Clone for AwgnChannel
impl Clone for AwgnChannel
Source§fn clone(&self) -> AwgnChannel
fn clone(&self) -> AwgnChannel
Returns a duplicate 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 Freeze for AwgnChannel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more