raeudigerRaeffi / generalizedReedSolomon

Python Implementation of A Class of Generalized RS-Codes with Faster Encoding and Decoding Algorithms
MIT License
13 stars 3 forks source link

Generated correction symbols are not the same as in MATLAB #1

Closed DmitryYenkov closed 1 year ago

DmitryYenkov commented 1 year ago

image image

Prim poly is the same as the other parameters. Why is this? What should I tweak to get the same result? Thanks.

raeudigerRaeffi commented 1 year ago

I have never used Matlab so I can not be of much help with regards to this one. Did you already try to corrupt a message and see whether the original message can successfully be recovered? If this works then there is probably a deviation from the initialization presented that you have not accounted for. If not then I would assume there is a mistake in the code

DmitryYenkov commented 1 year ago

Here is my reply on topic in this github project: https://github.com/tomerfiliba-org/reedsolomon/issues/66

In your source code I just forcibly replaced polynom coefficients by those ones I needed and it worked. image

The replacement coefficient are: TRUE_POLY_COEFFS = [[1, 118, 52, 103, 31, 104, 126, 187, 232, 17, 56, 183, 49, 100, 81, 44, 79]] (list of lists, of size=1, cause p_factor is set to 1 for me.