pub enum RbfKernel {
Linear,
ThinPlateSpline,
Cubic,
Quintic,
Multiquadric,
InverseMultiquadric,
InverseQuadratic,
Gaussian,
}Expand description
The radial kernels φ(r) of SciPy’s RBFInterpolator.
Variants§
Linear
−r (needs degree ≥ 0).
ThinPlateSpline
r² ln r (needs degree ≥ 1; SciPy’s default).
Cubic
r³ (needs degree ≥ 1).
Quintic
−r⁵ (needs degree ≥ 2).
Multiquadric
−√(1 + r²) (needs degree ≥ 0).
InverseMultiquadric
1/√(1 + r²).
InverseQuadratic
1/(1 + r²).
Gaussian
exp(−r²).
Implementations§
Source§impl RbfKernel
impl RbfKernel
pub fn eval(self, r: f64) -> f64
Sourcepub fn min_degree(self) -> i32
pub fn min_degree(self) -> i32
The lowest polynomial degree that makes the system solvable (−1: none needed), from
the order of conditional positive definiteness (Fasshauer, chapter 8).
Sourcepub fn scale_invariant(self) -> bool
pub fn scale_invariant(self) -> bool
Whether the interpolant is independent of ε (so ε = 1 by default).
Trait Implementations§
impl Copy for RbfKernel
impl Eq for RbfKernel
impl StructuralPartialEq for RbfKernel
Auto Trait Implementations§
impl Freeze for RbfKernel
impl RefUnwindSafe for RbfKernel
impl Send for RbfKernel
impl Sync for RbfKernel
impl Unpin for RbfKernel
impl UnsafeUnpin for RbfKernel
impl UnwindSafe for RbfKernel
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