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 more