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: f64Step of the LLR grid (nominal: the step is adjusted so that the LLR of the BSC falls on the grid).
llr_max: f64Largest LLR of the grid; larger magnitudes are clipped to it.
max_iterations: usizeLargest number of iterations.
target: f64The fraction of incorrect messages below which the run has converged.
Implementations§
Source§impl BpDensityEvolution
impl BpDensityEvolution
Sourcepub fn run(
&self,
ensemble: &RegularEnsemble,
channel: BinaryInputChannel,
) -> Result<DensityEvolutionRun>
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.
Trait Implementations§
Source§impl Clone for BpDensityEvolution
impl Clone for BpDensityEvolution
impl Copy for BpDensityEvolution
Source§impl Debug for BpDensityEvolution
impl Debug for BpDensityEvolution
Source§impl Default for BpDensityEvolution
impl Default for BpDensityEvolution
Source§impl PartialEq for BpDensityEvolution
impl PartialEq for BpDensityEvolution
impl StructuralPartialEq for BpDensityEvolution
Auto Trait Implementations§
impl Forget for BpDensityEvolution
impl Freeze for BpDensityEvolution
impl RefUnwindSafe for BpDensityEvolution
impl Send for BpDensityEvolution
impl Sync for BpDensityEvolution
impl Unpin for BpDensityEvolution
impl UnsafeUnpin for BpDensityEvolution
impl UnwindSafe for BpDensityEvolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more