ReedSolomonDecoder

Implements Reed-Solomon decoding, as the name implies.

The algorithm will not be explained here, but the following references were helpful in creating this implementation:

  • Bruce Maggs. [

  • "Decoding Reed-Solomon Codes"](http://www.cs.cmu.edu/afs/cs.cmu.edu/project/pscico-guyb/realworld/www/rs_decode.ps) (see discussion of Forney's Formula)

  • J.I. Hall. [

  • "Chapter 5. Generalized Reed-Solomon Codes"](www.mth.msu.edu/~jhall/classes/codenotes/GRS.pdf) (see discussion of Euclidean algorithm)

Much credit is due to William Rucklidge since portions of this code are an indirect port of his C++ Reed-Solomon implementation.

Constructors

Link copied to clipboard
constructor(field: GenericGF)

Functions

Link copied to clipboard
fun decode(received: IntArray, twoS: Int)

Decodes given set of received codewords, which include both data and error-correction codewords. Really, this means it uses Reed-Solomon to detect and correct errors, in-place, in the input.