numRecipes
public class Interpolation extends java.lang.Object
Constructor and Description |
---|
Interpolation() |
Modifier and Type | Method and Description |
---|---|
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].
|
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)