pub enum ExtrapolationMethod {
Show 25 variants
Error,
Constant,
Linear,
Quadratic,
Cubic,
Periodic,
Reflection,
Exponential,
PowerLaw,
Spline,
Akima,
Sinusoidal,
Rational,
Confidence,
Ensemble,
Adaptive,
Autoregressive,
Zeros,
Nearest,
Mirror,
Wrap,
Clamped,
GridMirror,
GridConstant,
GridWrap,
}
Expand description
Enhanced extrapolation methods for interpolation.
This enum provides advanced extrapolation capabilities that go beyond the basic ExtrapolateMode enum. It allows for more sophisticated boundary handling and domain extension methods, including:
- Physics-informed extrapolation based on boundary derivatives
- Polynomial extrapolation of various orders
- Decay/growth models for asymptotic behavior
- Periodic extension of the domain
- Reflection-based extrapolation
- Domain-specific extrapolation models
Variants§
Error
No extrapolation - return an error for points outside the domain
Constant
Use the nearest endpoint value (constant extrapolation)
Linear
Linear extrapolation based on endpoint derivatives
Quadratic
Quadratic extrapolation based on endpoint values and derivatives
Cubic
Cubic extrapolation preserving both values and derivatives at boundaries
Periodic
Extend domain as if the function is periodic
Reflection
Reflect the function at the boundaries
Exponential
Exponential decay/growth model for asymptotic behavior
PowerLaw
Power law decay/growth model for asymptotic behavior
Spline
Spline-based extrapolation using the full spline continuation
Akima
Akima extrapolation for stable polynomial continuation
Sinusoidal
Sinusoidal extrapolation for periodic data
Rational
Rational function extrapolation for poles/zeros behavior
Confidence
Confidence-based extrapolation with uncertainty bands
Ensemble
Ensemble extrapolation combining multiple methods
Adaptive
Adaptive extrapolation that selects the best method locally
Autoregressive
Autoregressive extrapolation using AR models
Zeros
Return zeros for all out-of-bounds points (SciPy ‘zeros’ mode)
Nearest
Use nearest boundary value (SciPy ‘nearest’/‘edge’ mode)
Mirror
Mirror reflection without repeating edge values (SciPy ‘mirror’ mode)
Wrap
Periodic wrapping (SciPy ‘wrap’ mode)
Clamped
Clamped boundary conditions with zero derivatives
GridMirror
Grid-specific mirror mode for structured grids
GridConstant
Grid-specific constant mode for structured grids
GridWrap
Grid-specific wrap mode for structured grids
Trait Implementations§
Source§impl Clone for ExtrapolationMethod
impl Clone for ExtrapolationMethod
Source§fn clone(&self) -> ExtrapolationMethod
fn clone(&self) -> ExtrapolationMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExtrapolationMethod
impl Debug for ExtrapolationMethod
Source§impl PartialEq for ExtrapolationMethod
impl PartialEq for ExtrapolationMethod
impl Copy for ExtrapolationMethod
impl StructuralPartialEq for ExtrapolationMethod
Auto Trait Implementations§
impl Freeze for ExtrapolationMethod
impl RefUnwindSafe for ExtrapolationMethod
impl Send for ExtrapolationMethod
impl Sync for ExtrapolationMethod
impl Unpin for ExtrapolationMethod
impl UnwindSafe for ExtrapolationMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.