Class Interpolation


  • public class Interpolation
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Interpolation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Function interpolate1D​(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> v)  
      static Function interpolate1D​(Matrix<java.lang.Double> colData)  
      static XYFunction interpolate2D​(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> y, java.lang.Iterable<java.lang.Double> v)  
      static XYFunction interpolate2D​(Matrix<java.lang.Double> colData)  
      static XYZFunction interpolate3D​(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> y, java.lang.Iterable<java.lang.Double> z, java.lang.Iterable<java.lang.Double> v)
      Returns a function representing the 3-dimensional interpolation of the supplied data-points.
      static XYZFunction interpolate3D​(Matrix<java.lang.Double> colData)
      Returns a function representing the 3-dimensional interpolation of the supplied data-points.
      static MultiFunction interpolateND​(java.lang.Iterable<java.lang.Double> v, java.lang.Iterable<java.lang.Double>... arguments)
      Returns a function representing the interpolation between the given set of points.
      static MultiFunction interpolateND​(Matrix<java.lang.Double> colData)
      Returns a function representing the interpolation between the given set of points.
      static Function interpolateSmooth​(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> v)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Interpolation

        public Interpolation()
    • Method Detail

      • interpolateND

        public static MultiFunction interpolateND​(java.lang.Iterable<java.lang.Double> v,
                                                  java.lang.Iterable<java.lang.Double>... arguments)
        Returns a function representing the interpolation between the given set of points.
        Parameters:
        v - Values of the function to interpolate
        arguments - The arguments of the function to interpolate.
        Returns:
        Multivariate function the returns a value for a given set of arguments by interpolating between the supplied points.
      • interpolateND

        public static MultiFunction interpolateND​(Matrix<java.lang.Double> colData)
        Returns a function representing the interpolation between the given set of points.
        Parameters:
        colData - the data to interpolate with each argument as a separate column and the final column being the values of each point.
        Returns:
        Multivariate function the returns a value for a given set of arguments by interpolating between the supplied points.
      • interpolate3D

        public static XYZFunction interpolate3D​(java.lang.Iterable<java.lang.Double> x,
                                                java.lang.Iterable<java.lang.Double> y,
                                                java.lang.Iterable<java.lang.Double> z,
                                                java.lang.Iterable<java.lang.Double> v)
        Returns a function representing the 3-dimensional interpolation of the supplied data-points.
        Parameters:
        x - X-Values
        y - Y-Values
        z - Z-Values
        v - Value to interpolate
        Returns:
        Interpolated 3D function (XYZFunction)
      • interpolate3D

        public static XYZFunction interpolate3D​(Matrix<java.lang.Double> colData)
        Returns a function representing the 3-dimensional interpolation of the supplied data-points.
        Parameters:
        colData - Matrix with the following 4 columns: x-values, y-values, z-values and values of each point
        Returns:
        Interpolated 3D function (XYZFunction)
      • interpolate2D

        public static XYFunction interpolate2D​(java.lang.Iterable<java.lang.Double> x,
                                               java.lang.Iterable<java.lang.Double> y,
                                               java.lang.Iterable<java.lang.Double> v)
      • interpolate2D

        public static XYFunction interpolate2D​(Matrix<java.lang.Double> colData)
      • interpolate1D

        public static Function interpolate1D​(java.lang.Iterable<java.lang.Double> x,
                                             java.lang.Iterable<java.lang.Double> v)
      • interpolate1D

        public static Function interpolate1D​(Matrix<java.lang.Double> colData)
      • interpolateSmooth

        public static Function interpolateSmooth​(java.lang.Iterable<java.lang.Double> x,
                                                 java.lang.Iterable<java.lang.Double> v)