Examples of BinMonomial


Examples of pl.mkaczara.bch.math.BinMonomial

     * @param in <b>poprawny</b> wielomian slowa kodu
     * @return wielomian danych zakodowanych w slowie
     */
    protected final BinPolynomial getData(BinPolynomial in){
        BinPolynomial res = new BinPolynomial(in.getPolyVector().and(dataMask), getCode().getK() - 1);
        res = res.divideByMonomial(new BinMonomial(getCode().getN() - getCode().getK()));
        return res;
    }
View Full Code Here

Examples of pl.mkaczara.bch.math.BinMonomial

     *
     * @param input wielomian informacji
     * @return wielomian slowa kodowego
     */
    public BinPolynomial encode(BinPolynomial input){
        input = input.multiplyByMonomial(new BinMonomial(code.getN() - code.getK()));
        BinPolynomial rx = input.modulo(code.getGenerator());
        input = input.add(rx);
        return input;
    }
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.