[][src]Struct believer::channel::BinarySymmetricChannel

pub struct BinarySymmetricChannel { /* fields omitted */ }

A binary symmetric channel caracterize by its error probability prob. That is, every time an input is send throught the channel, it is flipped with probability prob.

Methods

impl BinarySymmetricChannel[src]

pub fn new(prob: f64) -> Self[src]

Creates a new binary symmetric channel from an given prob of error.

Panic

Panic if prob is not between 0 and 1.

Trait Implementations

impl BinaryChannel for BinarySymmetricChannel[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,