|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.RecursivePolynom
public abstract class RecursivePolynom
A recursive polynom, like Chebyshev or Legendre, are defined by a minimum and maximum of the parameter space plus the coefficients.
| Nested Class Summary | |
|---|---|
static class |
RecursivePolynom.Constant
The zero-order recursive polynom is a constant. |
static class |
RecursivePolynom.Linear
The first-order recursive polynom is linear. |
| Field Summary | |
|---|---|
private double[] |
coef
The coefficients, order is defined by length of array. |
private double |
pmax
The maximum parameter value. |
private double |
pmin
The minimum parameter. |
| Constructor Summary | |
|---|---|
protected |
RecursivePolynom(double[] c,
double min,
double max)
Constructs a new recursive polynom. |
| Method Summary | |
|---|---|
double |
evaluate(double p)
On evaluation, we first calculate the normalized parameter, then start the recusion with 1 and n until the order is reached. |
protected double |
getCoefficient(int o)
Returns the coefficient of order i1. |
int |
getOrder()
Returns the order of the polynom. |
protected double |
normalize(double p)
|
protected abstract double |
recursion(int o,
double normalized,
double xminus1,
double xminus2)
The recursion formular to get to the polynomial value of the specified order, using the two last polynoms. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double pmin
private double pmax
private double[] coef
| Constructor Detail |
|---|
protected RecursivePolynom(double[] c,
double min,
double max)
| Method Detail |
|---|
public double evaluate(double p)
evaluate in interface Functionprotected double normalize(double p)
public int getOrder()
protected double getCoefficient(int o)
protected abstract double recursion(int o,
double normalized,
double xminus1,
double xminus2)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||