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>
Loading...
Searching...
No Matches
CECCO::SDMC< T > Class Template Reference

Symmetric Discrete Memoryless Channel — errors only, no erasures. More...

#include <blocks.hpp>

Inheritance diagram for CECCO::SDMC< T >:
Inheritance graph

Public Member Functions

 SDMC (double pe)
 Construct with symbol error probability pe.
Public Member Functions inherited from CECCO::SDMEC< T >
 SDMEC (double pe, double px=0.0)
 Construct with error probability pe and erasure probability px.
operator() (const T &in)
 Process one symbol.
double get_pe () const noexcept
 Observed symbol error probability pe.
double get_px () const noexcept
 Observed symbol erasure probability px.
double get_capacity () const noexcept
 Shannon capacity in bits per symbol.
long double get_Bhattacharyya_param () const
 Bhattacharyya parameter γ = 2·√(pe·(1 − pe)).
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

Detailed Description

template<FieldType T>
class CECCO::SDMC< T >

Symmetric Discrete Memoryless Channel — errors only, no erasures.

Template Parameters
TFinite field type for channel input/output symbols

Convenience wrapper for SDMEC<T>(pe, 0.0) with a single-parameter constructor.

See also
CECCO::SDMEC for the full errors-and-erasures channel
CECCO::BSC for the binary case

Definition at line 354 of file blocks.hpp.

Constructor & Destructor Documentation

◆ SDMC()

template<FieldType T>
CECCO::SDMC< T >::SDMC ( double pe)
inline

Construct with symbol error probability pe.

Parameters
peSymbol error probability ∈ [0, 1]

Definition at line 360 of file blocks.hpp.


The documentation for this class was generated from the following file: