Class TricubicSplineFunction

java.lang.Object
org.apache.commons.math3.analysis.interpolation.TricubicSplineFunction
All Implemented Interfaces:
TrivariateFunction

class TricubicSplineFunction extends Object implements TrivariateFunction
3D-spline function.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double[][][]
    Coefficients
    private static final short
    Number of points.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    value(double x, double y, double z)
    Compute the value for the function.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • N

      private static final short N
      Number of points.
      See Also:
    • a

      private final double[][][] a
      Coefficients
  • Constructor Details

    • TricubicSplineFunction

      TricubicSplineFunction(double[] aV)
      Parameters:
      aV - List of spline coefficients.
  • Method Details

    • value

      public double value(double x, double y, double z) throws OutOfRangeException
      Description copied from interface: TrivariateFunction
      Compute the value for the function.
      Specified by:
      value in interface TrivariateFunction
      Parameters:
      x - x-coordinate of the interpolation point.
      y - y-coordinate of the interpolation point.
      z - z-coordinate of the interpolation point.
      Returns:
      the interpolated value.
      Throws:
      OutOfRangeException - if x, y or z are not in the interval [0, 1].