Module: jqr-poly

This module provides the polynomial arithmetics required in the Reed-Solomon decoder used in the QR decoding/encoding process.
This is part of a port of the Zxing project, from java to modern and tested javascript.
Source:

Members

(static) Polynomial

Source:
Example
const Polynomial = require('jqr-poly').Polynomial;
let poly = new Polynomial(coefficients, field); // Not recommended

Methods

(inner) create(coefficients, field)

Factory method to create instances of Polynomials.
Parameters:
Name Type Description
coefficients array An array containing the polynomial coefficients, left is bigger.
field object The field used in this polynomial.
Source:
Example
const jqrPoly = require('jqr-poly');
let poly = jqrPoly.create(coefficients, field);