[][src]Struct believer::decoders::erasure::ErasureDecoder

pub struct ErasureDecoder { /* fields omitted */ }

Decoder for classical erasure channel.

Example

let code = ParityCheckMatrix::with_n_bits(3).with_checks(vec![vec![0, 1], vec![1, 2]]);
let decoder = ErasureDecoder::with_prob(0.25).for_code(code);
decoder.decode(&decoder.get_random_error());

Methods

impl ErasureDecoder[src]

pub fn with_prob(erasure_prob: f64) -> Self[src]

Creates an erasure decoder.

Panic

Panics if erasure_prob is not between 0.0 and 1.0.

Trait Implementations

impl Decoder for ErasureDecoder[src]

type Error = Vec<usize>

The type of error that the decoder can decode.

type Result = ErasureResult

The type of result the decoder is returning.

type Code = ParityCheckMatrix

The type of code the decoder is using.

impl Debug for ErasureDecoder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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>,