pub struct AaaApproximation { /* private fields */ }Expand description
A barycentric rational approximant r(x) = Σ w_k f_k / (x - z_k) / Σ w_k / (x - z_k) chosen
greedily from the sample points to reach a target accuracy.
Implementations§
Source§impl AaaApproximation
impl AaaApproximation
Sourcepub fn new(
z: VR1D<'_>,
f: VR1D<'_>,
tol: f64,
max_terms: usize,
) -> Result<Self, ErrorsJSL>
pub fn new( z: VR1D<'_>, f: VR1D<'_>, tol: f64, max_terms: usize, ) -> Result<Self, ErrorsJSL>
Fits samples f(z) (distinct z) with relative tolerance tol (e.g. 1e-13) and at most
max_terms support points.
Trait Implementations§
Source§impl Clone for AaaApproximation
impl Clone for AaaApproximation
Auto Trait Implementations§
impl Freeze for AaaApproximation
impl RefUnwindSafe for AaaApproximation
impl Send for AaaApproximation
impl Sync for AaaApproximation
impl Unpin for AaaApproximation
impl UnsafeUnpin for AaaApproximation
impl UnwindSafe for AaaApproximation
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