Package jisa.maths.interpolation
Class Interpolation
- java.lang.Object
-
- jisa.maths.interpolation.Interpolation
-
public class Interpolation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterpolation.MultiIterable
-
Constructor Summary
Constructors Constructor Description Interpolation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Functioninterpolate1D(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> v)static Functioninterpolate1D(Matrix<java.lang.Double> colData)static XYFunctioninterpolate2D(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> y, java.lang.Iterable<java.lang.Double> v)static XYFunctioninterpolate2D(Matrix<java.lang.Double> colData)static XYZFunctioninterpolate3D(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 XYZFunctioninterpolate3D(Matrix<java.lang.Double> colData)Returns a function representing the 3-dimensional interpolation of the supplied data-points.static MultiFunctioninterpolateND(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 MultiFunctioninterpolateND(Matrix<java.lang.Double> colData)Returns a function representing the interpolation between the given set of points.static FunctioninterpolateSmooth(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> v)
-
-
-
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 interpolatearguments- 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-Valuesy- Y-Valuesz- Z-Valuesv- 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)
-
interpolateSmooth
public static Function interpolateSmooth(java.lang.Iterable<java.lang.Double> x, java.lang.Iterable<java.lang.Double> v)
-
-