pub struct SpectralErrorIndicator<F: IntegrateFloat> {
pub window_size: usize,
pub decay_threshold: F,
/* private fields */
}Expand description
Spectral error indicator based on solution smoothness
Fields§
§window_size: usizeWindow size for spectral analysis
decay_threshold: FThreshold for spectral decay rate
Implementations§
Source§impl<F: IntegrateFloat> SpectralErrorIndicator<F>
impl<F: IntegrateFloat> SpectralErrorIndicator<F>
Sourcepub fn add_solution(&mut self, solution: Array1<F>)
pub fn add_solution(&mut self, solution: Array1<F>)
Add solution to history
Sourcepub fn compute_indicator(&self) -> IntegrateResult<Option<F>>
pub fn compute_indicator(&self) -> IntegrateResult<Option<F>>
Compute spectral error indicator
Auto Trait Implementations§
impl<F> Freeze for SpectralErrorIndicator<F>where
F: Freeze,
impl<F> RefUnwindSafe for SpectralErrorIndicator<F>where
F: RefUnwindSafe,
impl<F> Send for SpectralErrorIndicator<F>where
F: Send,
impl<F> Sync for SpectralErrorIndicator<F>where
F: Sync,
impl<F> Unpin for SpectralErrorIndicator<F>where
F: Unpin,
impl<F> UnwindSafe for SpectralErrorIndicator<F>where
F: UnwindSafe + RefUnwindSafe,
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
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