Skip to main content

BpDensityEvolution

Struct BpDensityEvolution 

Source
pub struct BpDensityEvolution {
    pub llr_step: f64,
    pub llr_max: f64,
    pub max_iterations: usize,
    pub target: f64,
}
Expand description

Discretized density evolution of belief propagation (see the module).

Fields§

§llr_step: f64

Step of the LLR grid (nominal: the step is adjusted so that the LLR of the BSC falls on the grid).

§llr_max: f64

Largest LLR of the grid; larger magnitudes are clipped to it.

§max_iterations: usize

Largest number of iterations.

§target: f64

The fraction of incorrect messages below which the run has converged.

Implementations§

Source§

impl BpDensityEvolution

Source

pub fn run( &self, ensemble: &RegularEnsemble, channel: BinaryInputChannel, ) -> Result<DensityEvolutionRun>

Run density evolution of belief propagation on the ensemble and the channel until the fraction of incorrect messages falls below target, stops decreasing, or max_iterations is reached.

§Errors

Error::Config for an invalid grid or channel parameter.

Source

pub fn threshold( &self, ensemble: &RegularEnsemble, channel: impl Fn(f64) -> BinaryInputChannel, lo: f64, hi: f64, steps: usize, ) -> Result<f64>

The threshold of a family of channels channel(t) that degrades as t grows, between lo (converges) and hi (does not), by steps bisection steps.

§Errors

As run for a parameter of the bracket.

Trait Implementations§

Source§

impl Clone for BpDensityEvolution

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for BpDensityEvolution

Source§

impl Debug for BpDensityEvolution

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BpDensityEvolution

Source§

fn default() -> Self

A step of 0.05, LLRs up to 25, 3000 iterations, a target of $10^{-7}$.

Source§

impl PartialEq for BpDensityEvolution

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BpDensityEvolution

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.