Comments (3)
Thank you for your feedback and your question. This is almost certainly due to the automatic chunking that is done in the RSCodec.encode()
method. Although I agree it would be better if it could have a more predictable behavior, the chunking is dynamically done based on n-k
(size of the input message minus the ecc bytes).
Instead of trying to predict when the chunking will happen, I would rather suggest that you forego using the RSCodec
object which always was intended as an easier facade interface to use the Reed-Solomon algorithm. Instead you can use the low-level interface, so that there is no chunking, you can fully control the whole encoding process.
Anyway, if you can provide me with a self-contained minimalistic reproducible example code, then I can investigate this issue further and try to improve the reproducibility of RSCodec chunking in the future.
from reedsolomon.
I've created this plot to understand the trend of the difference between input and output size when the input grows up.
The tests confirm that the implementation has this behavior which is kinda unpredictable if you don't test before.
from reedsolomon.
Thank you for your feedback and your question. This is almost certainly due to the automatic chunking that is done in the
RSCodec.encode()
method. Although I agree it would be better if it could have a more predictable behavior, the chunking is dynamically done based onn-k
(size of the input message minus the ecc bytes).Instead of trying to predict when the chunking will happen, I would rather suggest that you forego using the
RSCodec
object which always was intended as an easier facade interface to use the Reed-Solomon algorithm. Instead you can use the low-level interface, so that there is no chunking, you can fully control the whole encoding process.Anyway, if you can provide me with a self-contained minimalistic reproducible example code, then I can investigate this issue further and try to improve the reproducibility of RSCodec chunking in the future.
Hi! Thank you very much for your answer!
So I can't send my original code since it works with files so I've created a gist with the code used to generate the plot.
About the "low-level interface" I would like to use it but I'm not enough expert to understand how it work since I don't know how the reed-solomon error correction codes works. Can you hep me with a brief example for my case?
from reedsolomon.
Related Issues (20)
- The current state of this module HOT 1
- The project description is inaccurate HOT 8
- Decoding a message composed of 4-bit words in GF(16) HOT 1
- Missing tag for 1.7.0 HOT 2
- Questions about two different results with the same coding target. HOT 1
- 1.7.0: pep517 is not building DSO `creedsolo` module HOT 10
- Question Possible Systematic Generator Matrix from field generator polynomial? HOT 1
- creedsolo.pyx fails to cythonize on 2.0.5 HOT 30
- 2.0.5: pep517 based build fails HOT 5
- docs: Cython version can not be installed HOT 5
- Encode parity shards HOT 2
- Generated correction symbols do not match those ones of MATLAB HOT 5
- rs_calc_syndromes could not find injected error HOT 1
- build: add automatic unit testing in ci-build github workflow for MicroPython
- How to correct errors with `creedsolo` (`2.1.2b1`)? HOT 3
- Using multiple instances of RSCodec fails
- Cython install/build fails
- Length of (message + ecc) be 255 vs 256? HOT 1
- Encoding/Decoding CCSDS (255,223) messages with reedsolomon HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reedsolomon.