Package ffx.numerics.spline
Class TriCubicSpline
java.lang.Object
ffx.numerics.spline.TriCubicSpline
TriCubicSpline class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
spline
(double dx, double dy, double dz, double[][][] scalar, double[] g) Determine the spline value at a given point.
-
Constructor Details
-
TriCubicSpline
public TriCubicSpline()Initialize Spline function.
-
-
Method Details
-
spline
public double spline(double dx, double dy, double dz, double[][][] scalar, @Nullable double[] g) Determine the spline value at a given point.- Parameters:
dx
- delta between point and previous grid point in Xdy
- delta between point and previous grid point in Ydz
- delta between point and previous grid point in Zscalar
- 3d array in x,y,z order of 3D scalar datag
- gradient array (can be null)- Returns:
- the interpolated scalar value at the requested point
-