|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.math.CubicSpline
public class CubicSpline extends java.lang.Object implements AbstractSpline
Cubic spline implementation. Data can not have adjacent identical values (x[i]!=x[i-1]).
| Modifier and Type | Field and Description |
|---|---|
protected Orientation |
orientation
HORIZONTAL - from right to left; VERTICAL - from bottom to top; |
protected double[] |
xa
|
protected Point2D[] |
xy
|
protected double[] |
y2
|
protected double[] |
ya
|
| Constructor and Description |
|---|
CubicSpline()
|
| Modifier and Type | Method and Description |
|---|---|
AbstractSpline |
clone()
Clones the object |
Point2D[] |
getLines()
Gets spline line array |
Orientation |
getOrientation()
|
double[] |
interpolateYAt(double x)
Interpolates x value and returns the Y values array |
boolean |
isXValueInRange(double x)
|
boolean |
isYValueInRange(double y)
|
void |
setData(double[] x,
double[] y,
int n,
int step)
Sets spline data |
void |
setOrientation(Orientation orientation)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double[] xa
protected double[] ya
protected double[] y2
protected Point2D[] xy
protected Orientation orientation
| Constructor Detail |
|---|
public CubicSpline()
| Method Detail |
|---|
public void setData(double[] x,
double[] y,
int n,
int step)
AbstractSpline
setData in interface AbstractSplinex - normalized x valuesy - normalized y valuesn - point countstep - step countpublic Point2D[] getLines()
AbstractSpline
getLines in interface AbstractSplinepublic double[] interpolateYAt(double x)
AbstractSpline
interpolateYAt in interface AbstractSplinex - x value, where to interpolatepublic boolean isYValueInRange(double y)
public boolean isXValueInRange(double x)
public Orientation getOrientation()
public void setOrientation(Orientation orientation)
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 | ||||||||