Struct ndarray_stats::interpolate::Linear
source · pub struct Linear;
Expand description
Linearly interpolate between the two values
(lower + (higher - lower) * fraction
, where fraction
is the
fractional part of the index surrounded by lower
and higher
).
Trait Implementations
impl<T> Interpolate<T> for Linearwhere
T: Add<T, Output = T> + Clone + FromPrimitive + ToPrimitive,
Auto Trait Implementations
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more