Trait Nearest

Source
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

Required Methods§

Source

fn nearest(&self, point: &[f64]) -> Result<f64, InterpolationError>

Implementors§