discr_utils

Helpers for discretization-related functionality.

Most functions deal with interpolation of arrays, sampling of functions and providing a single interface for the sampler by wrapping functions or arrays of functions appropriately.

Functions

linear_interpolator(f, coord_vecs)

Return the linear interpolator for discrete function values.

nearest_interpolator(f, coord_vecs)

Return the nearest neighbor interpolator for discrete values.

per_axis_interpolator(f, coord_vecs, interp)

Return a per axis defined interpolator for discrete values.

point_collocation(func, points[, out])

Sample a function on a grid of points.

sampling_function(func_or_arr, domain[, …])

Return a function that can be used for sampling.