This application calculates valid codewords for a given parity check matrix and can provide useful information about the associated code
- Compute Generator Matrix
- Generate all valid codewords
- Calculate Hamming Distance
- Give insights into the code's properties
There are two main ways to use this application.
- Run it in your favorite IDE: Navigate to Application.java and run the main method. You can either pass your arguments in args[] or you can edit the hard-coded values at the beginning of the main method. If no arguments can be parsed from args[], the hard-coded values will be used for the calculations.
- Open the .jar-file from the command line: After navigating to the root directory, you can write
java -jar Parity-Check-Matrix-1.2.1.jar
to run the application. The parity-check-matrix and a limit for possible values can be added to the command by simply attaching them to the end of the command.
java -jar Parity-Check-Matrix-1.2.1.jar
This runs the application with the hard-coded values as parametersjava -jar Parity-Check-Matrix-1.2.1.jar "{{1,1,1,1,1}}"
This runs the application with the parity-check-matrix {{1,1,1,1,1}} and the standard limit of 2java -jar Parity-Check-Matrix-1.2.1.jar "{{1,1,1,1,1}}" 4
This runs the application with the parity-check-matrix {{1,1,1,1,1}} and a limit of 4 which means 0, 1, 2 and 3 are possible values (eg. in a codeword)java -jar Parity-Check-Matrix-1.2.1.jar "\begin{pmatrix} 1&1&1&1&1 \end{pmatrix}" 4
This works just like the previous example but uses Latex syntax instead of Wolfram Alpha syntax for the matrixjava -jar Parity-Check-Matrix-1.2.1.jar solveWholeExam
This will probably not work, but I'm not sure as I haven't tried it yet!