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