comnum.theory_rs_wer#
- comnum.theory_rs_wer(n, t, p_s)#
The word error rate of a bounded-distance decoder of a
t-error-correcting code ofnsymbols over a memoryless channel of symbol error probabilityp_s(Proakis & Salehi, Digital Communications, 5th ed., Sec. 7.5.2): the probability of more thantwrong symbols.- Parameters:
- Returns:
the word error probability at every
p_s.- Return type:
- Raises:
ValueError – for values that are not real numbers.
Examples
>>> import comnum >>> pw = comnum.theory_rs_wer(255, 16, [1e-3, 1e-2]) >>> bool(pw[0] < 1e-15), round(float(pw[1]), 12) (True, 1.4e-09)