public interface Interpolator
AbstractInterpolator
Modifier and Type | Method and Description |
---|---|
void |
appendValue(double newx,
double newy)
Append a new position to the existing coordinates.
|
double |
evalYData(double xp)
Return the interpolated value corresponding to some arbitrary
X coordinate.
|
double[] |
evalYDataArray(double[] xps)
Return an array of interpolated value corresponding to some
array of arbitrary X coordinates.
|
int |
getCount()
Get the number of coordinate positions that are being used by
this interpolator.
|
double |
getXCoord(int index)
Get an X coordinate by index.
|
double[] |
getXCoords()
Get the X coordinates.
|
double |
getYCoord(int index)
Get a Y coordinate by index.
|
double[] |
getYCoords()
Get the Y coordinates.
|
double |
interpolate(double xp)
Return the interpolated value corresponding to some arbitrary
X coordinate.
|
boolean |
isFull()
Return if the Interpolator is full.
|
boolean |
isIncreasing()
Return the direction being used by this interpolator.
|
void |
setCoords(double[] x,
double[] y,
boolean check)
Set or reset the coordinates used by this interpolator.
|
int |
stepGuess()
A guess at the number of steps needed between the actual X
coordinates that may be used to draw a reasonable representation
of the curve being interpolated.
|
int stepGuess()
void setCoords(double[] x, double[] y, boolean check)
x
- the X coordinates.y
- the Y coordinates.check
- whether to check the monotonic direction (compares
0 and 1 values of x). Use this when you need to
preserve the direction temporarily even though the
order may currently be switched, but take care to
reorder before interpolating.boolean isIncreasing()
void appendValue(double newx, double newy)
x
- the X coordinate.y
- the Y coordinate.int getCount()
boolean isFull()
double[] getXCoords()
setCoords
.double getXCoord(int index)
double[] getYCoords()
setCoords
.double getYCoord(int index)
double interpolate(double xp)
xp
- the X coordinate at which an interpolated Y
coordinate is required.double evalYData(double xp)
xp
- the X coordinate at which an interpolated Y
coordinate is required.double[] evalYDataArray(double[] xps)
xps
- the X coordinates at which interpolated Y
coordinates are required.Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.