pub struct Interpolator { /* private fields */ }
Implementations§
Source§impl Interpolator
impl Interpolator
Sourcepub fn new(
x_values: Vec<f64>,
y_values: Vec<f64>,
interpolation_type: InterpolationType,
extrap_strategy: ExtrapolationStrategy,
) -> Self
pub fn new( x_values: Vec<f64>, y_values: Vec<f64>, interpolation_type: InterpolationType, extrap_strategy: ExtrapolationStrategy, ) -> Self
Creates a new Interpolator with the given points
Sourcepub fn interpolate(&self, x: f64) -> f64
pub fn interpolate(&self, x: f64) -> f64
Performs interpolation for a given x value using the specified type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interpolator
impl RefUnwindSafe for Interpolator
impl Send for Interpolator
impl Sync for Interpolator
impl Unpin for Interpolator
impl UnwindSafe for Interpolator
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