[−][src]Struct believer::decoders::erasure::ErasureDecoder
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]
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.
fn for_code(self, code: Self::Code) -> Self
[src]
fn take_code(&mut self) -> Self::Code
[src]
fn decode(&self, error: &Self::Error) -> Self::Result
[src]
fn get_random_error_with_rng<R: Rng>(&self, rng: &mut R) -> Self::Error
[src]
fn get_random_error(&self) -> Self::Error
[src]
fn decode_random_error_with_rng<R: Rng>(&self, rng: &mut R) -> Self::Result
[src]
fn decode_random_error(&self) -> Self::Result
[src]
fn simulate_n_iterations_with_rng<R: Rng>(
&self,
n_iterations: usize,
rng: &mut R
) -> SimulationResult
[src]
&self,
n_iterations: usize,
rng: &mut R
) -> SimulationResult
fn simulate_n_iterations(&self, n_iterations: usize) -> SimulationResult
[src]
fn simulate_until_n_events_are_found_with_rng<R: Rng>(
&self,
n_events: usize,
rng: &mut R
) -> SimulationResult
[src]
&self,
n_events: usize,
rng: &mut R
) -> SimulationResult
fn simulate_until_n_events_are_found(&self, n_events: usize) -> SimulationResult
[src]
impl Debug for ErasureDecoder
[src]
Auto Trait Implementations
impl Send for ErasureDecoder
impl Sync for ErasureDecoder
impl Unpin for ErasureDecoder
impl UnwindSafe for ErasureDecoder
impl RefUnwindSafe for ErasureDecoder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,