|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.CubicSpline
public class CubicSpline
Cubic spline interpolation. Based on Num. Rec.
| Field Summary | |
|---|---|
private Vector2D[] |
sampling
The sampling grid. |
private double[] |
spline
The calculated y-two-primes. |
| Constructor Summary | |
|---|---|
|
CubicSpline(String doubletokenize)
Constructs a natural cubic spline from a string input by splitting the input on the semicolon and then constructing VectorGs out of it. |
|
CubicSpline(Vector2D[] grid)
Constructs a natural cubic spline. |
|
CubicSpline(Vector2D[] grid,
double yp0,
double ypn)
Constructs a cubic spline with both boundary values given. |
|
CubicSpline(Vector2D[] grid,
Double yp0,
Double ypn)
Constructs a cubic spline with the two boundary values of the first derivative specified or natural, if null |
private |
CubicSpline(Vector2D[] grid,
Vector1D y2p0,
Vector1D y2pn)
Does a cubic spline interpolation, providing the first and second derivative on the end of the intervals. |
| Method Summary | |
|---|---|
private static Vector2D[] |
convert(VectorG[] two)
Converts an array of VectorGs into an array of Vector2D or throws an exception, if a single non-two dimensional vector was found. |
double |
evaluate(double x)
We evaluate the spline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Vector2D[] sampling
private double[] spline
| Constructor Detail |
|---|
public CubicSpline(String doubletokenize)
public CubicSpline(Vector2D[] grid)
public CubicSpline(Vector2D[] grid,
double yp0,
double ypn)
public CubicSpline(Vector2D[] grid,
Double yp0,
Double ypn)
private CubicSpline(Vector2D[] grid,
Vector1D y2p0,
Vector1D y2pn)
| Method Detail |
|---|
private static Vector2D[] convert(VectorG[] two)
public double evaluate(double x)
evaluate in interface Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||