pub struct Series { /* private fields */ }Expand description
An interpolated 1-D data series.
Implementations§
Source§impl Series
impl Series
Sourcepub fn try_new(
x: impl Into<Arc<[f64]>>,
y: impl Into<Arc<[f64]>>,
interpolation: InterpolationType,
) -> Result<Series, SeriesError>
pub fn try_new( x: impl Into<Arc<[f64]>>, y: impl Into<Arc<[f64]>>, interpolation: InterpolationType, ) -> Result<Series, SeriesError>
Creates a new series, returning an error if the data is invalid.
Sourcepub fn new(
x: impl Into<Arc<[f64]>>,
y: impl Into<Arc<[f64]>>,
interpolation: InterpolationType,
) -> Series
pub fn new( x: impl Into<Arc<[f64]>>, y: impl Into<Arc<[f64]>>, interpolation: InterpolationType, ) -> Series
Creates a new series, panicking if the data is invalid.
Sourcepub fn find_index(&self, xp: f64) -> usize
pub fn find_index(&self, xp: f64) -> usize
Finds the interval index for interpolation at point xp.
Sourcepub fn interpolate_at_index(&self, xp: f64, idx: usize) -> f64
pub fn interpolate_at_index(&self, xp: f64, idx: usize) -> f64
Interpolates at point xp using the precomputed interval idx.
Sourcepub fn interpolate(&self, xp: f64) -> f64
pub fn interpolate(&self, xp: f64) -> f64
Interpolates the series at point xp.
Trait Implementations§
impl StructuralPartialEq for Series
Auto Trait Implementations§
impl Freeze for Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnsafeUnpin for Series
impl UnwindSafe for Series
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