| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.numerics.LegendreInterpolator
public class LegendreInterpolator
LegendreInterpolator uses a polynomial interpolation formula to evaluate values between data points.
| Constructor Summary | |
|---|---|
| LegendreInterpolator(double[] xdata,
                     double[] ydata)Constructs a Legendre interpolating polynomial from the given data. | |
| Method Summary | |
|---|---|
|  double | evaluate(double x)Computes the interpolated y value for a given x value. | 
|  double[] | getCoefficients()Gets the polynomial coefficients c in c[0] + c[1] * x + c[2] * x^2 + .... | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LegendreInterpolator(double[] xdata,
                            double[] ydata)
xdata - double[]ydata - double[]| Method Detail | 
|---|
public double evaluate(double x)
evaluate in interface FunctionaNumber - x value.
public double[] getCoefficients()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||