|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.Interpolation
public class Interpolation
Class Interpolation defines simple interpolation algorithms. This class cannot be subclassed or instantiated because all methods are static.
Method Summary | |
---|---|
static double |
lagrange(double x,
double[] xd,
double[] yd)
Lagrange polynomial interpolation at a single point x. |
static double |
linear(double x,
double x0,
double x1,
double y0,
double y1)
Linear interpolation at a single point x. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double linear(double x, double x0, double x1, double y0, double y1)
x
- doublex0
- doublex1
- doubley0
- doubley1
- double
public static double lagrange(double x, double[] xd, double[] yd)
x
- doublexd
- double[] the x datayd
- double[] the y data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |