pub struct ChannelState {
pub csi: Option<Csi>,
pub noise_var: Option<f64>,
pub faded_power: Option<f64>,
}Expand description
The channel of a trial, as a genie-aided receiver knows it.
Fields§
§csi: Option<Csi>The fading of the trial.
noise_var: Option<f64>Variance of the complex noise added per sample by the noise blocks.
faded_power: Option<f64>Mean power of the signal that entered the fading channel: the reference power of the noise blocks after a fading block, so that the SNR is an average over the fading and not the SNR of every realisation.
Implementations§
Source§impl ChannelState
impl ChannelState
Sourcepub fn detector_noise_var(&self) -> f64
pub fn detector_noise_var(&self) -> f64
The noise variance per sample for the detectors, floored at 1e-12 (and 1e-12
when no noise block ran).
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
Source§impl Debug for ChannelState
impl Debug for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnsafeUnpin for ChannelState
impl UnwindSafe for ChannelState
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