|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.sns.tools.fit.spline.CubicSpline
Constructor Summary | |
CubicSpline(CubicSpline sp)
constructor of a new spline from another one |
|
CubicSpline(double[] xx,
double[] y)
constructor which takes only the data points |
|
CubicSpline(double[] xx,
double[] y,
double fp0,
double fpn)
constructor which also takes initial and final slope constraints |
Method Summary | |
void |
differentiate()
Differentiates a spline in place. |
double |
evaluateAt(double xx)
method to return an interpolated result at a given x value |
void |
integrate()
Integrates a spline in place. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CubicSpline(CubicSpline sp)
public CubicSpline(double[] xx, double[] y, double fp0, double fpn)
xx
- - the data X valuesfp0
- - the slope at the starting pointfpn
- - the slope at the end pointpublic CubicSpline(double[] xx, double[] y)
xx
- - the data X valuesMethod Detail |
public double evaluateAt(double xx)
xx
- - the x value to evaluate the interpolation atpublic void differentiate()
public void integrate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |