|
C(++)ECCO
C++ Error Control COding: a header-only library for ECC simulations and experiments, modeling complete coding systems across arbitrary finite fields and complex inter-field relationships - Christian Senger <senger@inue.uni-stuttgart.de>
|
Binary Asymmetric Channel (Z-channel) — 0 is preserved; 1 flips to 0 with probability p. More...
#include <blocks.hpp>

Public Member Functions | |
| BAC (double p) | |
| Construct with flip probability p. | |
| Fp< 2 > | operator() (const Fp< 2 > &in) |
| Process one bit. | |
| double | get_pe () const noexcept |
| Flip probability p (probability that 1 → 0). | |
| double | get_capacity () const noexcept |
| Shannon capacity in bits per symbol. | |
| Public Member Functions inherited from CECCO::details::BlockProcessor< T, ElementType, ElementType > | |
| Vector< ElementType > | operator() (const Vector< ElementType > &in) |
| Apply the block element-wise to each vector entry. | |
| Vector< ElementType > | operator() (Vector< ElementType > &&in) |
| Apply the block element-wise (rvalue input). | |
| Matrix< ElementType > | operator() (const Matrix< ElementType > &in) |
| Apply the block element-wise to each matrix entry. | |
| Matrix< ElementType > | operator() (Matrix< ElementType > &&in) |
| Apply the block element-wise (rvalue input). | |
| ElementType | operator() (const U &) |
| Catch-all for inputs whose element type differs from InputType. | |
| Vector< ElementType > | operator() (const Vector< U > &) |
| Matrix< ElementType > | operator() (const Matrix< U > &) |
Additional Inherited Members | |
| Protected Member Functions inherited from CECCO::details::BlockProcessor< T, ElementType, ElementType > | |
| const T & | derived () const noexcept |
| T & | derived () noexcept |
Binary Asymmetric Channel (Z-channel) — 0 is preserved; 1 flips to 0 with probability p.
Definition at line 400 of file blocks.hpp.
|
inline |
Construct with flip probability p.
| p | Probability that 1 → 0, p ∈ [0, 1] |
| std::out_of_range | if p ∉ [0, 1] or 0 < p < 1e−9 |
Definition at line 412 of file blocks.hpp.
|
inlinenoexcept |
Shannon capacity in bits per symbol.
Definition at line 431 of file blocks.hpp.
|
inlinenoexcept |
Flip probability p (probability that 1 → 0).
Definition at line 425 of file blocks.hpp.
Process one bit.
| in | Input bit |
Definition at line 419 of file blocks.hpp.