public class BilinearInterpolatingFunction extends Object implements BivariateFunction, FieldBivariateFunction, Serializable
This interpolator is thread-safe.
Constructor and Description |
---|
BilinearInterpolatingFunction(double[] xVal,
double[] yVal,
double[][] fVal)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getXInf()
Get the lowest grid x coordinate.
|
double |
getXSup()
Get the highest grid x coordinate.
|
double |
getYInf()
Get the lowest grid y coordinate.
|
double |
getYSup()
Get the highest grid y coordinate.
|
double |
value(double x,
double y)
Compute the value for the function.
|
<T extends RealFieldElement<T>> |
value(T x,
T y)
Compute the value for the function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toRealFieldBivariateFunction
public BilinearInterpolatingFunction(double[] xVal, double[] yVal, double[][] fVal) throws MathIllegalArgumentException
xVal
- All the x-coordinates of the interpolation points, sorted
in increasing order.yVal
- All the y-coordinates of the interpolation points, sorted
in increasing order.fVal
- The values of the interpolation points on all the grid knots:
fVal[i][j] = f(xVal[i], yVal[j])
.MathIllegalArgumentException
- if grid size is smaller than 2
or if the grid is not sorted in strict increasing orderpublic double getXInf()
public double getXSup()
public double getYInf()
public double getYSup()
public double value(double x, double y)
value
in interface BivariateFunction
x
- Abscissa for which the function value should be computed.y
- Ordinate for which the function value should be computed.public <T extends RealFieldElement<T>> T value(T x, T y)
value
in interface FieldBivariateFunction
T
- type of the field elementsx
- Abscissa for which the function value should be computed.y
- Ordinate for which the function value should be computed.Copyright © 2016–2020 Hipparchus.org. All rights reserved.