Crate nd_interpolate

source ·
Expand description

This crate provides linear and cubic interpolators for up to 4 dimensions

Functions

  • Four-point cubic interpolation of point (X) in a grid of Y-values. This function assumes that X is in the middle of the provided grid array (that is, X lies between local_4[1] and local_4[2]). X will be normalized with X - floor(X) where 0 equals local_4[1] and 0.999… approaches local_4[2], interpolating with a cubic spline.
  • 16-point bi-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1] in the grid and floor(coord)+1 represents index[2,2] in the grid
  • 64-point tri-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 256-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 1024-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 4096-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 16,384-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 65,536-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 262,144-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • 1,048,576-point hyperdimensional-cubic interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[1,1,…] in the grid and floor(coord)+1 represents index[2,2,…] in the grid
  • two-point x,y linear interpolation
  • four-point X,Y bi-linear interpolation in a grid, using the assumption that x and y are between the provided reference grid points
  • eight-point X,Y,Z tri-linear interpolation in a grid, using the assumption that (X,Y,Z) is between the provided reference grid points
  • sixteen-point X,Y,Z,W tetra-linear interpolation in a grid, using the assumption that (X,Y,Z,W) is between the provided reference grid points
  • 32-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid
  • 64-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid
  • 128-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid
  • 256-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid
  • 512-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid
  • 1024-point hyperdimensional-linear interpolation of a coordinate in a grid of values. This function assumes that coord is in the middle of the provided grid array, such that floor(coord) represents index[0,0,…] in the grid and floor(coord)+1 represents index[1,1,…] in the grid