pub struct ConvergenceTestConfig {
pub max_iterations: usize,
pub tolerance: f64,
pub min_iterations: usize,
pub window_size: usize,
pub test_monotonic: bool,
pub test_convergence_rate: bool,
}Expand description
Configuration for convergence testing
Fields§
§max_iterations: usizeMaximum number of iterations to test
tolerance: f64Tolerance for convergence detection
min_iterations: usizeMinimum iterations before checking convergence
window_size: usizeWindow size for convergence rate calculation
test_monotonic: boolWhether to test monotonic convergence
test_convergence_rate: boolWhether to test convergence rate
Implementations§
Source§impl ConvergenceTestConfig
impl ConvergenceTestConfig
Sourcepub fn max_iterations(self, max_iter: usize) -> Self
pub fn max_iterations(self, max_iter: usize) -> Self
Set maximum iterations
Sourcepub fn min_iterations(self, min_iter: usize) -> Self
pub fn min_iterations(self, min_iter: usize) -> Self
Set minimum iterations
Sourcepub fn window_size(self, window: usize) -> Self
pub fn window_size(self, window: usize) -> Self
Set window size for convergence rate calculation
Sourcepub fn test_monotonic(self, test: bool) -> Self
pub fn test_monotonic(self, test: bool) -> Self
Enable/disable monotonic convergence testing
Sourcepub fn test_convergence_rate(self, test: bool) -> Self
pub fn test_convergence_rate(self, test: bool) -> Self
Enable/disable convergence rate testing
Trait Implementations§
Source§impl Clone for ConvergenceTestConfig
impl Clone for ConvergenceTestConfig
Source§fn clone(&self) -> ConvergenceTestConfig
fn clone(&self) -> ConvergenceTestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConvergenceTestConfig
impl Debug for ConvergenceTestConfig
Auto Trait Implementations§
impl Freeze for ConvergenceTestConfig
impl RefUnwindSafe for ConvergenceTestConfig
impl Send for ConvergenceTestConfig
impl Sync for ConvergenceTestConfig
impl Unpin for ConvergenceTestConfig
impl UnwindSafe for ConvergenceTestConfig
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> 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>
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