|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.numerics.CubicSpline
public class CubicSpline
Class description
| Constructor Summary | |
|---|---|
CubicSpline(double[] xdata,
double[] ydata)
Constructs a natural CubicSpline interpolating function from the given data. |
|
CubicSpline(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
Constructs a constrained CubicSpline interpolating function from the given data. |
|
| Method Summary | |
|---|---|
double |
evaluate(double x)
Computes the interpolated y value for a given x value. |
Function |
firstDerivative()
|
Function |
secondDerivative()
|
void |
update(double[] xdata,
double[] ydata)
Update the natural spline data and recompute the coefficients. |
void |
update(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
Update the constrained spline data and recompute the coefficients. |
| 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[]
public CubicSpline(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
xdata - double[]ydata - double[]startDyDx - double derivative at 0endDyDx - double derivative at n-1| Method Detail |
|---|
public void update(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
xdata - ydata -
public void update(double[] xdata,
double[] ydata)
xdata - ydata - public double evaluate(double x)
evaluate in interface Functionx -
public Function firstDerivative()
public Function secondDerivative()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||