|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.CubicSpline
public class CubicSpline
Constructor Summary | |
---|---|
CubicSpline(double[] xdata,
double[] ydata)
Constructs a CubicSpline interpolating function from the given data. |
Method Summary | |
---|---|
double |
evaluate(double x)
Computes the interpolated y value for a given x value. |
void |
update(double[] xdata,
double[] ydata)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CubicSpline(double[] xdata, double[] ydata)
xdata
- double[]ydata
- double[]Method Detail |
---|
public void update(double[] xdata, double[] ydata)
public double evaluate(double x)
evaluate
in interface Function
x
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |