pub struct Bicubic;
Expand description
Bicubic Interpolation
Trait Implementations§
Source§impl<T> Interp2dType<T> for Bicubic
impl<T> Interp2dType<T> for Bicubic
Source§fn build(
&self,
xa: &[T],
ya: &[T],
za: &[T],
) -> Result<BicubicInterp<T>, InterpolationError>
fn build( &self, xa: &[T], ya: &[T], za: &[T], ) -> Result<BicubicInterp<T>, InterpolationError>
Constructs a Bicubic Interpolator.
§Example
let xa = [0.0, 1.0, 2.0, 3.0];
let ya = [0.0, 2.0, 4.0, 6.0];
// z = x + y, in column-major order
let za = [
0.0, 1.0, 2.0, 3.0,
2.0, 3.0, 4.0, 5.0,
4.0, 5.0, 6.0, 7.0,
6.0, 7.0, 8.0, 9.0,
];
let interp = Bicubic.build(&xa, &ya, &za)?;
Source§type Interpolator2d = BicubicInterp<T>
type Interpolator2d = BicubicInterp<T>
The returned 2D Interpolator, containing the calculated coefficients and providing the
evaluation methods.
Auto Trait Implementations§
impl Freeze for Bicubic
impl RefUnwindSafe for Bicubic
impl Send for Bicubic
impl Sync for Bicubic
impl Unpin for Bicubic
impl UnwindSafe for Bicubic
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