nearest_interpolation

Function nearest_interpolation 

Source
pub fn nearest_interpolation<M: Clone, P: GetXY + GetZ, R: GetM<M> + GetXY + GetZ, V: Interpolatable>(
    point: &P,
    ref_data: &[R],
    get_value: GetInterpolateValue<R, V>,
) -> V
Expand description

§Nearest Neighbor Interpolation

§Description

Finds the nearest point in the reference data to the given point and returns its value.

§Usage