|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectnumRecipes.Interpolation
public class Interpolation
Utilities to interpolate data points (x_i, y_i) (i=0,...). A function in form of y=f(x) is obtained by a given data points.
| Constructor Summary | |
|---|---|
Interpolation()
|
|
| Method Summary | |
|---|---|
static double |
getErrorInPolynominalInterpolate()
|
static double |
mThPolynominalInterpolate(double[] xa,
double[] ya,
int n,
double x,
int m)
Interpolate with mTh pylinominal function. |
static double |
polynominalInterpolate(double[] xa,
double[] ya,
double x)
Given arrays xa[0....n-1] and ya[0....n-1], and given a value x, this method returns a value y by the polynominal interpolation. |
static int |
searchIndex(double[] xx,
double x,
int n)
Search the array index such that x is between xx[index] and xx[index+1]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interpolation()
| Method Detail |
|---|
public static int searchIndex(double[] xx,
double x,
int n)
public static double polynominalInterpolate(double[] xa,
double[] ya,
double x)
public static double getErrorInPolynominalInterpolate()
public static double mThPolynominalInterpolate(double[] xa,
double[] ya,
int n,
double x,
int m)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||