pub trait Nearest {
// Required method
fn nearest(&self, point: &[f64]) -> Result<f64, InterpolationError>;
}Expand description
Nearest value (left or right, whichever nearest) interpolation: https://en.wikipedia.org/wiki/Nearest-neighbor_interpolation