Examples of BCHDecoder


Examples of pl.mkaczara.bch.decoder.BCHDecoder

        //Podobne kody (<> rozmiar slowa)
        //Status tego co się udalo zrobić w dokumencie
//        TransmissionSimulator ts = new TransmissionSimulator(18, TransmissionSimulator.ErrorScope.CORRECTION_PART_SIZE, BCHCode.BCH_255_131);
//        encoded = ts.transmitData(encoded);
               
        BCHDecoder decoder = new BCHDecoder(BCHCode.BCH_255_131, true);
       
        start = System.currentTimeMillis();
        byte[] decoded;
        try {
            decoded = decoder.decode(encoded);
        } catch (UncorrectableErrorsException ex) {
            System.err.println("Uncorrectable errors found in received code words!");
            return;
        }
        stop = System.currentTimeMillis();
View Full Code Here

Examples of pl.mkaczara.bch.decoder.BCHDecoder

                else if(testElem.element("transmission").attributeValue("errorsScope").equals("CORRECTION_PART_SIZE")){
                    errorScope = TransmissionSimulator.ErrorScope.CORRECTION_PART_SIZE;
                }
                currentTest.setTransmissionSimulator(new TransmissionSimulator(Integer.valueOf(testElem.element("transmission").attributeValue("errorsNumber")), errorScope, code));
                //Decoder
                currentTest.setDecoder(new BCHDecoder(code, Boolean.valueOf(testElem.element("decoder").attributeValue("simple"))));
               
                tests.add(currentTest);
            }
        } catch (IOException | DocumentException ex) {
            System.err.println(ex.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.