Struct ndarray_histogram::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§
source§impl<T> Interpolate<T> for Linearwhere
T: NumOps + Clone + FromPrimitive + ToPrimitive,
impl<T> Interpolate<T> for Linearwhere T: NumOps + Clone + FromPrimitive + ToPrimitive,
source§fn __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 moreAuto Trait Implementations§
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
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