org.apache.mahout.math.jet.math
Class Polynomial

java.lang.Object
  extended by org.apache.mahout.math.jet.math.Constants
      extended by org.apache.mahout.math.jet.math.Polynomial

Deprecated. until unit tests are in place. Until this time, this class/interface is unsupported.

@Deprecated
public class Polynomial
extends Constants


Field Summary
 
Fields inherited from class org.apache.mahout.math.jet.math.Constants
big, biginv, LOGPI, MACHEP, MAXGAM, MAXLOG, MINLOG, SQRTH, SQTPI
 
Constructor Summary
protected Polynomial()
          Deprecated. Makes this class non instantiable, but still let's others inherit from it.
 
Method Summary
static double p1evl(double x, double[] coef, int N)
          Deprecated. Evaluates the given polynomial of degree N at x, assuming coefficient of N is 1.0.
static double polevl(double x, double[] coef, int N)
          Deprecated. Evaluates the given polynomial of degree N at x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polynomial

protected Polynomial()
Deprecated. 
Makes this class non instantiable, but still let's others inherit from it.

Method Detail

p1evl

public static double p1evl(double x,
                           double[] coef,
                           int N)
                    throws java.lang.ArithmeticException
Deprecated. 
Evaluates the given polynomial of degree N at x, assuming coefficient of N is 1.0. Otherwise same as polevl().
                     2          N
 y  =  C  + C x + C x  +...+ C x
        0    1     2          N

 where C  = 1 and hence is omitted from the array.
        N

 Coefficients are stored in reverse order:

 coef[0] = C  , ..., coef[N-1] = C  .
            N-1                   0

 Calling arguments are otherwise the same as polevl().
 
In the interest of speed, there are no checks for out of bounds arithmetic.

Parameters:
x - argument to the polynomial.
coef - the coefficients of the polynomial.
N - the degree of the polynomial.
Throws:
java.lang.ArithmeticException

polevl

public static double polevl(double x,
                            double[] coef,
                            int N)
                     throws java.lang.ArithmeticException
Deprecated. 
Evaluates the given polynomial of degree N at x.
                     2          N
 y  =  C  + C x + C x  +...+ C x
        0    1     2          N

 Coefficients are stored in reverse order:

 coef[0] = C  , ..., coef[N] = C  .
            N                   0
 
In the interest of speed, there are no checks for out of bounds arithmetic.

Parameters:
x - argument to the polynomial.
coef - the coefficients of the polynomial.
N - the degree of the polynomial.
Throws:
java.lang.ArithmeticException


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.