pub struct RectBivariateSpline { /* private fields */ }Expand description
An interpolating spline of degrees kx and ky (odd: 1, 3 or 5) through z[i][j] = f(xᵢ, yⱼ).
Implementations§
Source§impl RectBivariateSpline
impl RectBivariateSpline
Sourcepub fn new(
x: &[f64],
y: &[f64],
z: &Array2<f64>,
kx: usize,
ky: usize,
) -> Result<RectBivariateSpline, ErrorsJSL>
pub fn new( x: &[f64], y: &[f64], z: &Array2<f64>, kx: usize, ky: usize, ) -> Result<RectBivariateSpline, ErrorsJSL>
Fits the spline. With s = 0 FITPACK places the interior knots at the data points except
(k + 1)/2 at each end, which for odd k is the not-a-knot spline; the separable system
Aₓ C Aᵧᵀ = Z is solved one axis at a time: interpolate every column of Z along x,
then every row of the result along y.
Sourcepub fn evaluate(&self, x: f64, y: f64, dx: usize, dy: usize) -> f64
pub fn evaluate(&self, x: f64, y: f64, dx: usize, dy: usize) -> f64
The value or partial derivative ∂^{dx+dy} s / ∂x^{dx} ∂y^{dy} at (x, y). Points outside
the grid are clamped to its edge, as FITPACK’s bispev does.
Sourcepub fn integral(&self, xa: f64, xb: f64, ya: f64, yb: f64) -> f64
pub fn integral(&self, xa: f64, xb: f64, ya: f64, yb: f64) -> f64
∫_{xa}^{xb} ∫_{ya}^{yb} s(x, y) dy dx (SciPy’s integral), as Σ cᵢⱼ Iᵢ Jⱼ with the
integrals Iᵢ, Jⱼ of the one-dimensional basis functions.
Sourcepub fn coefficients(&self) -> &Array2<f64>
pub fn coefficients(&self) -> &Array2<f64>
The coefficients cᵢⱼ.
Trait Implementations§
Source§impl Clone for RectBivariateSpline
impl Clone for RectBivariateSpline
Source§impl Debug for RectBivariateSpline
impl Debug for RectBivariateSpline
Source§impl PartialEq for RectBivariateSpline
impl PartialEq for RectBivariateSpline
impl StructuralPartialEq for RectBivariateSpline
Auto Trait Implementations§
impl Freeze for RectBivariateSpline
impl RefUnwindSafe for RectBivariateSpline
impl Send for RectBivariateSpline
impl Sync for RectBivariateSpline
impl Unpin for RectBivariateSpline
impl UnsafeUnpin for RectBivariateSpline
impl UnwindSafe for RectBivariateSpline
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