MOA 12.03
Real Time Analytics for Data Streams
moa.clusterers.clustream.cern.Polynomial Class Reference

Polynomial functions. More...

List of all members.

Static Public Member Functions

static double p1evl (double x, double coef[], int N) throws ArithmeticException
 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) throws ArithmeticException
 Evaluates the given polynomial of degree N at x.

Protected Member Functions

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

Detailed Description

Polynomial functions.

Definition at line 14 of file clustream/cern/Polynomial.java.


Constructor & Destructor Documentation

moa.clusterers.clustream.cern.Polynomial.Polynomial ( ) [protected]

Makes this class non instantiable, but still let's others inherit from it.

Definition at line 19 of file clustream/cern/Polynomial.java.


Member Function Documentation

static double moa.clusterers.clustream.cern.Polynomial.p1evl ( double  x,
double  coef[],
int  N 
) throws ArithmeticException [static]

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:
xargument to the polynomial.
coefthe coefficients of the polynomial.
Nthe degree of the polynomial.

Definition at line 46 of file clustream/cern/Polynomial.java.

Referenced by moa.clusterers.clustream.cern.Gamma.logGamma().

Here is the caller graph for this function:

static double moa.clusterers.clustream.cern.Polynomial.polevl ( double  x,
double  coef[],
int  N 
) throws ArithmeticException [static]

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:
xargument to the polynomial.
coefthe coefficients of the polynomial.
Nthe degree of the polynomial.

Definition at line 76 of file clustream/cern/Polynomial.java.

Referenced by moa.clusterers.clustream.cern.Gamma.logGamma().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations