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
sourceimpl<T> Interpolate<T> for Linear where
T: NumOps + Clone + FromPrimitive + ToPrimitive,
impl<T> Interpolate<T> for Linear where
T: NumOps + Clone + FromPrimitive + ToPrimitive,
sourcefn __private__(&self, _: PrivateMarker)
fn __private__(&self, _: PrivateMarker)
This method makes this trait impossible to implement outside of
ndarray-stats
so that we can freely add new methods, etc., to
this trait without breaking changes. Read more
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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