org.jscience.mathematics.analysis.polynomials
Class LaguerreDoublePolynomialFactory

java.lang.Object
  extended by org.jscience.mathematics.analysis.polynomials.OrthogonalDoublePolynomialFactory
      extended by org.jscience.mathematics.analysis.polynomials.LaguerreDoublePolynomialFactory
All Implemented Interfaces:
OrthogonalPolynomialFactory

public final class LaguerreDoublePolynomialFactory
extends OrthogonalDoublePolynomialFactory

This class implements Laguerre polynomials.

Laguerre polynomials can be defined by the following recurrence relations:

        L0(X)   = 1
        L1(X)   = 1 - X
  (k+1) Lk+1(X) = (2k + 1 - X) Lk(X) - k Lk-1(X)
 


Constructor Summary
LaguerreDoublePolynomialFactory()
           
 
Method Summary
 Polynomial[] getFirstTermsPolynomials()
          Initialize the recurrence coefficients for degree 0 and 1.
 DoublePolynomial getOrthogonalPolynomial(int degree)
          Simple constructor.
 Field.Member[] getRecurrenceCoefficients(int k)
          Initialize the recurrence coefficients.
 
Methods inherited from class org.jscience.mathematics.analysis.polynomials.OrthogonalDoublePolynomialFactory
getOrthogonalPolynomialCoefficients
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaguerreDoublePolynomialFactory

public LaguerreDoublePolynomialFactory()
Method Detail

getOrthogonalPolynomial

public DoublePolynomial getOrthogonalPolynomial(int degree)
Simple constructor. Build a degree d Chebyshev polynomial

Specified by:
getOrthogonalPolynomial in interface OrthogonalPolynomialFactory
Specified by:
getOrthogonalPolynomial in class OrthogonalDoublePolynomialFactory
Parameters:
degree - degree of the polynomial
Returns:
DOCUMENT ME!

getFirstTermsPolynomials

public Polynomial[] getFirstTermsPolynomials()
Initialize the recurrence coefficients for degree 0 and 1.

Specified by:
getFirstTermsPolynomials in interface OrthogonalPolynomialFactory
Specified by:
getFirstTermsPolynomials in class OrthogonalDoublePolynomialFactory
Returns:
an array which contains the coefficients for degree 0 and 1

getRecurrenceCoefficients

public Field.Member[] getRecurrenceCoefficients(int k)
Initialize the recurrence coefficients. The recurrence relation is (k+1) Lk+1(X) = (2k + 1 - X) Lk(X) - k Lk-1(X)

Specified by:
getRecurrenceCoefficients in interface OrthogonalPolynomialFactory
Specified by:
getRecurrenceCoefficients in class OrthogonalDoublePolynomialFactory
Parameters:
k - index of the current step
Returns:
a double array of 3 elements: b2k = double[0] coefficient to initialize (b2k = a2k / a1k) b3k = double[1] coefficient to initialize (b3k = a3k / a1k) b4k = double[2] coefficient to initialize (b4k = a4k / a1k)