\Zxing\Common\ReedsolomonGenericGFPoly

<p>Represents a polynomial whose coefficients are elements of a GF.

Instances of this class are immutable.

Much credit is due to William Rucklidge since portions of this code are an indirect port of his C++ Reed-Solomon implementation.

Summary

Methods
Properties
Constants
__construct()
getCoefficients()
getDegree()
isZero()
getCoefficient()
evaluateAt()
addOrSubtract()
multiply()
multiply_()
multiplyByMonomial()
divide()
toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$field
$coefficients
N/A

Properties

$field

$field : 

Type

$coefficients

$coefficients : 

Type

Methods

__construct()

__construct(  $field,   $coefficients) 

Parameters

$field
$coefficients

Throws

\Zxing\Common\Reedsolomon\IllegalArgumentException

if argument is null or empty, or if leading coefficient is 0 and this is not a constant polynomial (that is, it is not the monomial "0")

getCoefficients()

getCoefficients() 

getDegree()

getDegree() : \Zxing\Common\Reedsolomon\degree

Returns

\Zxing\Common\Reedsolomon\degree —

of this polynomial

isZero()

isZero() : true

Returns

true —

iff this polynomial is the monomial "0"

getCoefficient()

getCoefficient(  $degree) : \Zxing\Common\Reedsolomon\coefficient

Parameters

$degree

Returns

\Zxing\Common\Reedsolomon\coefficient —

of x^degree term in this polynomial

evaluateAt()

evaluateAt(  $a) : \Zxing\Common\Reedsolomon\evaluation

Parameters

$a

Returns

\Zxing\Common\Reedsolomon\evaluation —

of this polynomial at a given point

addOrSubtract()

addOrSubtract(  $other) 

Parameters

$other

multiply()

multiply(  $other) 

Parameters

$other

multiply_()

multiply_(  $scalar) 

Parameters

$scalar

multiplyByMonomial()

multiplyByMonomial(  $degree,   $coefficient) 

Parameters

$degree
$coefficient

divide()

divide(  $other) 

Parameters

$other

toString()

toString()