ReedSolomonCode class

A systematic Reed--Solomon code descriptor and reference encoder.

Symbols are ordered from the constant polynomial coefficient upward. The descriptor keeps the generator and reference operations independent from any hardware or streaming protocol.

Constructors

ReedSolomonCode({required BinaryExtensionField field, required int length, required int messageSymbols, int firstRoot = 0, int shortening = 0})
Creates a Reed--Solomon descriptor.

Properties

configurationSignature → String
Identifier for RTL built from this code geometry and field.
no setter
field → BinaryExtensionField
The extension field containing the symbols.
final
firstRoot → int
Exponent of the first consecutive generator root.
final
fullLength → int
The parent code length, equal to the non-zero field-element count.
latefinal
generatorPolynomial → List<GfValue>
Generator polynomial coefficients, constant term first.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of transmitted symbols, including parity.
final
messageSymbols → int
Number of information symbols.
final
paritySymbols → int
Number of parity symbols.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortening → int
Number of omitted leading parent-code symbols.
final

Methods

correct(Iterable<GfValue> received, Iterable<int> positions, Iterable<GfValue> magnitudes) → List<GfValue>
Applies magnitudes at positions and returns the corrected codeword.
encode(Iterable<GfValue> message) → List<GfValue>
Encodes message systematically into a transmitted codeword.
erasureLocator(Iterable<int> positions) → List<GfValue>
Builds the erasure-locator polynomial for transmitted symbol positions.
errorLocator(Iterable<GfValue> received, {Iterable<int> erasures = const []}) → List<GfValue>
Builds the combined error-and-erasure locator from received.
forneyMagnitudes(Iterable<GfValue> received, List<GfValue> locator, Iterable<int> positions) → List<GfValue>
Evaluates Forney magnitudes at the supplied error positions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syndromes(Iterable<GfValue> received) → List<GfValue>
Evaluates consecutive syndromes for received.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited