Struct ndarray_stats::interpolate::Midpoint
source · pub struct Midpoint;
Expand description
Select the midpoint of the two values ((lower + higher) / 2
).
Trait Implementations
impl<T> Interpolate<T> for Midpointwhere
T: Add<T, Output = T> + Div<T, Output = T> + Clone + FromPrimitive,
Auto Trait Implementations
impl RefUnwindSafe for Midpoint
impl Send for Midpoint
impl Sync for Midpoint
impl Unpin for Midpoint
impl UnwindSafe for Midpoint
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