pub struct RbfInterpolator { /* private fields */ }Expand description
An RBF interpolant.
Implementations§
Source§impl RbfInterpolator
impl RbfInterpolator
Sourcepub fn new(
y: &[Vec<f64>],
d: &[f64],
kernel: RbfKernel,
epsilon: Option<f64>,
degree: Option<i32>,
smoothing: f64,
) -> Result<RbfInterpolator, ErrorsJSL>
pub fn new( y: &[Vec<f64>], d: &[f64], kernel: RbfKernel, epsilon: Option<f64>, degree: Option<i32>, smoothing: f64, ) -> Result<RbfInterpolator, ErrorsJSL>
Fits the interpolant to values d at points y (rows). epsilon defaults to 1 for the
scale-invariant kernels and is required otherwise; degree defaults to the kernel’s
minimum (at least 0); smoothing (≥ 0) relaxes interpolation to a least-squares fit. The
system [K + λI, P; Pᵀ, 0] [a; b] = [d; 0] is solved by LU, with the polynomial built on
coordinates shifted and scaled into [−1, 1].
Trait Implementations§
Source§impl Clone for RbfInterpolator
impl Clone for RbfInterpolator
Auto Trait Implementations§
impl Freeze for RbfInterpolator
impl RefUnwindSafe for RbfInterpolator
impl Send for RbfInterpolator
impl Sync for RbfInterpolator
impl Unpin for RbfInterpolator
impl UnsafeUnpin for RbfInterpolator
impl UnwindSafe for RbfInterpolator
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