pub struct LinearNdInterpolator { /* private fields */ }Expand description
Linear interpolation on the Delaunay triangulation of scattered points in d ≥ 2
dimensions: the value at x is the barycentric average of the values at the vertices of
the simplex containing x, and fill_value (NaN by default, as SciPy) outside the convex
hull.
Implementations§
Source§impl LinearNdInterpolator
impl LinearNdInterpolator
pub fn new( points: &[Vec<f64>], values: &[f64], ) -> Result<LinearNdInterpolator, ErrorsJSL>
Sourcepub fn with_fill_value(self, fill_value: f64) -> Self
pub fn with_fill_value(self, fill_value: f64) -> Self
The value returned outside the convex hull of the data.
Sourcepub fn triangulation(&self) -> &DelaunayNd
pub fn triangulation(&self) -> &DelaunayNd
The triangulation used.
pub fn evaluate(&self, x: &[f64]) -> f64
Trait Implementations§
Source§impl Clone for LinearNdInterpolator
impl Clone for LinearNdInterpolator
Source§impl Debug for LinearNdInterpolator
impl Debug for LinearNdInterpolator
Auto Trait Implementations§
impl Freeze for LinearNdInterpolator
impl RefUnwindSafe for LinearNdInterpolator
impl Send for LinearNdInterpolator
impl Sync for LinearNdInterpolator
impl Unpin for LinearNdInterpolator
impl UnsafeUnpin for LinearNdInterpolator
impl UnwindSafe for LinearNdInterpolator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more