Interface FieldTrivariateGridInterpolator<T extends CalculusFieldElement<T>>
- Type Parameters:
T- type of the field elements
- All Known Implementing Classes:
FieldTrilinearInterpolator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface FieldTrivariateGridInterpolator<T extends CalculusFieldElement<T>>
Interface representing a trivariate field interpolating function where the
sample points must be specified on a regular grid.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptioninterpolate(T[] xval, T[] yval, T[] zval, T[][][] fval) Compute an interpolating function for the dataset.
-
Method Details
-
interpolate
CalculusFieldTrivariateFunction<T> interpolate(T[] xval, T[] yval, T[] zval, T[][][] fval) throws MathIllegalArgumentException Compute an interpolating function for the dataset.- Parameters:
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.zval- All the z-coordinates of the interpolation points, sorted in increasing order.fval- The values of the interpolation points on all the grid knots:fval[i][j][k] = f(xval[i], yval[j], zval[k]).- Returns:
- a function which interpolates the dataset.
- Throws:
MathIllegalArgumentException- if any of the arrays has zero length.MathIllegalArgumentException- if the array lengths are inconsistent.MathIllegalArgumentException- if the array is not sorted.MathIllegalArgumentException- if the number of points is too small for the order of the interpolation
-