Trait ldpc::noise_model::NoiseModel[][src]

pub trait NoiseModel {
    type Error;
    fn sample_error_of_length<R: Rng>(
        &self,
        length: usize,
        rng: &mut R
    ) -> Self::Error; }

Associated Types

type Error[src]

The type of the generated errors.

Loading content...

Required methods

fn sample_error_of_length<R: Rng>(
    &self,
    length: usize,
    rng: &mut R
) -> Self::Error
[src]

Generates a random error of the given length.

Loading content...

Implementors

impl NoiseModel for BinarySymmetricChannel[src]

type Error = SparseBinVec

Loading content...