Skip to main content

bit_error_probability

Function bit_error_probability 

Source
pub fn bit_error_probability(
    n: usize,
    t: usize,
    m: u32,
    p_s: f64,
) -> Result<f64>
Expand description

The bit error probability after decoding of a code over $\mathrm{GF}(2^{m})$: a wrong symbol carries on average $2^{m-1}/(2^{m} - 1)$ wrong bits per bit (Sklar, Sec. 8.1.2),

$$ P_{b} \approx \frac{2^{m-1}}{2^{m} - 1}, P_{s}^{\mathrm{out}}. $$

§Errors

comnum_core::Error::Config for $p_{s}$ outside $[0, 1]$ or $m = 0$.