zooc.dsp.surface_nearest_interpolator
2D-surface with interpolation and extrapolation using simple nearest neighbor interpolation.
- class zooc.dsp.surface_nearest_interpolator.SurfaceNearestInterpolator(**kwargs)
Bases:
objectSimple Nearest interpolator without numpy dependency.
Deprecated since version 1.0: This module is obsolete.
For now, the module still uses numpy.
Nearest interpolation without numpy.
- Parameters:
- static nearest(dict_v, key_value)
Search the dict value of which key is nearest to given key.
When the target key is exactly between the two keys, select the larger one.