public abstract class CoefficientsGenerator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CoefficientsGenerator(RationalNumber a00,
RationalNumber a01,
RationalNumber a11)
Build a generator with coefficients for two polynomials.
|
| Modifier and Type | Method and Description |
|---|---|
RationalNumber[] |
getCoefficients(int degree)
Get the coefficients array for a given degree.
|
protected abstract void |
setRecurrenceCoefficients(int k)
Set the recurrence coefficients.
|
protected void |
setRecurrenceCoefficients(RationalNumber b2k,
RationalNumber b3k,
RationalNumber b4k)
Set the recurrence coefficients.
|
protected CoefficientsGenerator(RationalNumber a00, RationalNumber a01, RationalNumber a11)
The first polynomial must be a degree 0 polynomial P0(X)=a0,0 and the second polynomial must be a degree 1 polynomial P1(X)=a0,1 +a1,1X
a00 - constant term for the degree 0 polynomiala01 - constant term for the degree 1 polynomiala11 - X term for the degree 1 polynomialprotected void setRecurrenceCoefficients(RationalNumber b2k, RationalNumber b3k, RationalNumber b4k)
b2k - b2,k coefficient (b2,k = a2,k / a1,k)b3k - b3,k coefficient (b3,k = a3,k / a1,k)b4k - b4,k coefficient (b4,k = a4,k / a1,k)protected abstract void setRecurrenceCoefficients(int k)
a1,k Ok+1(X) =(a2,k + a3,k X) Ok(X) - a4,k Ok-1(X)the method must call
setRecurrenceCoefficients(RationalNumber,
RationalNumber, RationalNumber) to provide the coefficientsk - index of the current steppublic RationalNumber[] getCoefficients(int degree)
degree - degree of the polynomialCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.