rssoft  0.0.0
Reed-Solomon codes library with soft decision decoding
rssoft Namespace Reference

Namespaces

namespace  gf

Classes

class  EvaluationValues
 Evaluation points of encoding polynomial and symbol values. Following the format of Reliability and Multiplicity matrices: More...
class  ProbabilityCodeword
 Probability score weighted codeword. More...
class  FinalEvaluation
class  GSKV_Interpolation
class  MultiplicityMatrix_SparseOrdering
 Ordering of elements in the sparse matrix according to the column first order. Indexes are pairs of (row, column) indexes. More...
class  MultiplicityMatrix
 Multiplicity matrix corresponding to a reliability matrix. It is implemented as a map representing a sparse matrix where elements are indexed by their (row, column) numbers pair. Once constructed it is normally only used to be traversed column first during the Interpolation algorithm. The ordering of indexes reflects the column first order. More...
class  ReliabilityMatrix
 Reliability Matrix class. Analog data is entered first then the normalization method is called to get the actual reliability data (probabilities). More...
class  RR_Node
 Node in the Roth-Ruckenstein's algorithm. More...
class  RR_Factorization
 Roth-Ruckenstein's factorization. More...
class  RS_Encoding
 Does the Reed-Solomon encoding of a message. his is the genuine, straightforward, non-systematic encoding that takes message symbols to build the successive coefficients of the encoding polynomial. Then this polynomial is evaluated at the evaluation points to make the codeword. More...
class  RSSoft_Exception
 Generic exception class for Reed-Solomon Soft decision decoding library. More...

Functions

std::ostream & operator<< (std::ostream &os, const ProbabilityCodeword &scored_codeword)
std::ostream & operator<< (std::ostream &os, const MultiplicityMatrix &matrix)
std::ostream & operator<< (std::ostream &os, const ReliabilityMatrix &matrix)

Function Documentation

std::ostream& rssoft::operator<< ( std::ostream &  os,
const ProbabilityCodeword &  scored_codeword 
)

Print a probability score weighted codeword to an output stream

std::ostream& rssoft::operator<< ( std::ostream &  os,
const MultiplicityMatrix &  matrix 
)

Prints a multiplicity matrix to an output stream

{
        unsigned int nb_rows = matrix.get_nb_symbols();
        unsigned int nb_cols = matrix.get_message_length();

        for (unsigned int ir=0; ir<nb_rows; ir++)
        {
                for (unsigned int ic=0; ic<nb_cols; ic++)
                {
                        if (ic > 0)
                        {
                                os << " ";
                        }
            
            MultiplicityMatrix::const_iterator elt_it = matrix.find(std::make_pair(ir,ic));
            
            if (elt_it == matrix.end())
            {
                os << std::setw(3) << 0;
            }
            else
            {
                os << std::setw(3) << elt_it->second;
            }
                }

                os << std::endl;
        }
    
    return os;
}

Here is the call graph for this function:

std::ostream& rssoft::operator<< ( std::ostream &  os,
const ReliabilityMatrix &  matrix 
)

Prints a reliability matrix to an output stream

{
        unsigned int nb_rows = matrix.get_nb_symbols();
        unsigned int nb_cols = matrix.get_message_length();

        for (unsigned int ir=0; ir<nb_rows; ir++)
        {
                for (unsigned int ic=0; ic<nb_cols; ic++)
                {
                        if (ic > 0)
                        {
                                os << " ";
                        }
                        os << std::fixed << std::setw(8) << std::setprecision(6) << matrix(ir, ic);
                }

                os << std::endl;
        }
    
    return os;
}

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines