Struct ldpc::noise_model::BinarySymmetricChannel [−][src]
pub struct BinarySymmetricChannel { /* fields omitted */ }
Expand description
A binary symmetric channel flips at bit with the given probrability.
This noise model returns a SparseBinVec
where
the positions of each 1s are associated to bit flips.
Implementations
Creates a new binary symmetric channel with the given error probability.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
type Error = SparseBinVec
type Error = SparseBinVec
The type of the generated errors.
Auto Trait Implementations
impl RefUnwindSafe for BinarySymmetricChannel
impl Send for BinarySymmetricChannel
impl Sync for BinarySymmetricChannel
impl Unpin for BinarySymmetricChannel
impl UnwindSafe for BinarySymmetricChannel
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub unsafe fn to_subset_unchecked(&self) -> SS
pub unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V