[][src]Struct lpn::codes::StGenCode

pub struct StGenCode<'codes> { /* fields omitted */ }

'Concatenated' Linear Codes with extra noise

This struct allows to construct a Linear code from the direct sum of smaller codes.

Methods

impl<'codes> StGenCode<'codes>[src]

pub fn new(
    codes: Vec<&'codes dyn BinaryCode>,
    w0: u32,
    l_max: usize,
    wb: u32,
    w_inc: u32
) -> StGenCode<'codes>
[src]

Construct a new stgencode

pub fn l_max(&self) -> usize[src]

Get the max list size

pub fn w0(&self) -> u32[src]

Get the starting weight limit

pub fn wb(&self) -> u32[src]

Get the round weight limit

pub fn w_inc(&self) -> u32[src]

Get the round weight increase

pub fn decoding_complexity(&self) -> u64[src]

Get the complexity of decoding

pub fn biases(&self, deltas: &[f64]) -> Option<Vec<f64>>[src]

Trait Implementations

impl<'codes> BinaryCode for StGenCode<'codes>[src]

impl<'a> Sync for StGenCode<'a>[src]

impl<'codes> Clone for StGenCode<'codes>[src]

impl<'codes> Serialize for StGenCode<'codes>[src]

Auto Trait Implementations

impl<'codes> Unpin for StGenCode<'codes>

impl<'codes> !Send for StGenCode<'codes>

impl<'codes> !UnwindSafe for StGenCode<'codes>

impl<'codes> !RefUnwindSafe for StGenCode<'codes>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,