pub struct BulirschStoer<'a> { /* private fields */ }Expand description
Diagonal rational function interpolation (Stoer and Bulirsch) through points with distinct abscissae. Unlike a polynomial, a rational function can follow poles and sharp resonances, and it reproduces any rational function of matching degree exactly. Each evaluation is O(n²) and also yields an error estimate (the size of the last correction).
A genuine pole of the interpolant at the query point produces an error. Iteration stops early once corrections fall to rounding level, which happens when the data are exactly rational of lower degree than the point count allows.
Implementations§
Trait Implementations§
Source§impl<'a> Debug for BulirschStoer<'a>
impl<'a> Debug for BulirschStoer<'a>
Source§impl<'a> InterpolationTrait<'a> for BulirschStoer<'a>
impl<'a> InterpolationTrait<'a> for BulirschStoer<'a>
Source§fn get_x_values(&self) -> VR1D<'a>
fn get_x_values(&self) -> VR1D<'a>
Setters and getters for required fields
fn set_x_values(&mut self, x: VR1D<'a>)
fn get_y_values(&self) -> VR1D<'a>
fn set_y_values(&mut self, y: VR1D<'a>)
fn get_cached_location(&self) -> Option<usize>
fn set_cached_location(&mut self, _: usize)
Source§fn raw_interpolate(&mut self, _: usize, _: f64) -> Result<f64, ErrorsJSL>
fn raw_interpolate(&mut self, _: usize, _: f64) -> Result<f64, ErrorsJSL>
This is where the interpolation gets computed based on the method
Source§fn interpolate_at(&mut self, x: f64) -> Result<f64, ErrorsJSL>
fn interpolate_at(&mut self, x: f64) -> Result<f64, ErrorsJSL>
Top level wrapper for evaluation
Source§fn x_range_is_ascending(&self) -> bool
fn x_range_is_ascending(&self) -> bool
Check if x range is ascending
Auto Trait Implementations§
impl<'a> Freeze for BulirschStoer<'a>
impl<'a> RefUnwindSafe for BulirschStoer<'a>
impl<'a> Send for BulirschStoer<'a>
impl<'a> Sync for BulirschStoer<'a>
impl<'a> Unpin for BulirschStoer<'a>
impl<'a> UnsafeUnpin for BulirschStoer<'a>
impl<'a> UnwindSafe for BulirschStoer<'a>
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