|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.math.CubicSplineReal
public class CubicSplineReal extends java.lang.Object implements AbstractSpline
Real cubic spline implementation
| Constructor and Description |
|---|
CubicSplineReal()
Empty spline constructor |
CubicSplineReal(double[] x,
double[] y,
int n)
Real Cubic Spline constructor Default step number is 12 |
CubicSplineReal(double[] x,
double[] y,
int n,
int steps)
Real Cubic Spline constructor |
| Modifier and Type | Method and Description |
|---|---|
AbstractSpline |
clone()
Clones the object |
Point2D[] |
getLines()
Gets spline line array |
double[] |
interpolateYAt(double x)
Interpolates x value and returns the Y values array |
void |
setData(double[] x,
double[] y,
int n,
int steps)
Sets spline data |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CubicSplineReal(double[] x,
double[] y,
int n,
int steps)
throws java.lang.IllegalArgumentException
x - X values arrayy - Y values arrayn - number of pointssteps - number to how many steps one line between two points should be splitted up.java.lang.IllegalArgumentExceptionpublic CubicSplineReal()
public CubicSplineReal(double[] x,
double[] y,
int n)
throws java.lang.IllegalArgumentException
x - X values arrayy - Y values arrayn - number of pointsjava.lang.IllegalArgumentException| Method Detail |
|---|
public void setData(double[] x,
double[] y,
int n,
int steps)
AbstractSpline
setData in interface AbstractSplinex - normalized x valuesy - normalized y valuesn - point countsteps - step countpublic Point2D[] getLines()
AbstractSpline
getLines in interface AbstractSplinepublic double[] interpolateYAt(double x)
AbstractSpline
interpolateYAt in interface AbstractSplinex - x value, where to interpolate
public AbstractSpline clone()
throws java.lang.CloneNotSupportedException
AbstractSpline
clone in interface AbstractSplineclone in class java.lang.Objectjava.lang.CloneNotSupportedException - exception if not possible to clone
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||