pub struct AdaptiveGrid1D { /* private fields */ }Expand description
Adaptive grid generator using recursive bisection.
This generator recursively subdivides intervals in 1D, refining only where the underlying function exhibits high variance (error exceeds tolerance).
Algorithm:
- Start with an interval [a, b]
- Evaluate the function at a, midpoint m, and b
- Compute the linear interpolation at m from endpoints
- If |f(m) - interpolated(m)| > tolerance, bisect into [a, m] and [m, b] and recurse
- Otherwise, mark the interval as sufficiently smooth
This guarantees adaptive refinement: dense grids form only near sharp features, while smooth regions remain coarse.
Implementations§
Source§impl AdaptiveGrid1D
impl AdaptiveGrid1D
Auto Trait Implementations§
impl Freeze for AdaptiveGrid1D
impl RefUnwindSafe for AdaptiveGrid1D
impl Send for AdaptiveGrid1D
impl Sync for AdaptiveGrid1D
impl Unpin for AdaptiveGrid1D
impl UnsafeUnpin for AdaptiveGrid1D
impl UnwindSafe for AdaptiveGrid1D
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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 more