pub struct LipschitzParams {
pub lipschitz_constant: f64,
pub tolerance: f64,
pub max_iterations: usize,
pub adaptive_estimation: bool,
pub damping: f64,
}Expand description
Parameters for Lipschitz-continuous strange loops
Fields§
§lipschitz_constant: f64Lipschitz constant L (must be < 1 for contraction)
tolerance: f64Convergence tolerance
max_iterations: usizeMaximum iterations before giving up
adaptive_estimation: boolEnable adaptive Lipschitz estimation
damping: f64Damping factor for numerical stability
Implementations§
Source§impl LipschitzParams
impl LipschitzParams
Sourcepub fn fast_convergence() -> Self
pub fn fast_convergence() -> Self
Create parameters optimized for fast convergence
Sourcepub fn high_precision() -> Self
pub fn high_precision() -> Self
Create parameters for high-precision convergence
Sourcepub fn convergence_rate(&self) -> f64
pub fn convergence_rate(&self) -> f64
Estimate convergence rate
Sourcepub fn estimated_iterations(&self, initial_distance: f64) -> usize
pub fn estimated_iterations(&self, initial_distance: f64) -> usize
Estimate iterations needed for convergence
Trait Implementations§
Source§impl Clone for LipschitzParams
impl Clone for LipschitzParams
Source§fn clone(&self) -> LipschitzParams
fn clone(&self) -> LipschitzParams
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 LipschitzParams
impl Debug for LipschitzParams
Source§impl Default for LipschitzParams
impl Default for LipschitzParams
Source§impl<'de> Deserialize<'de> for LipschitzParams
impl<'de> Deserialize<'de> for LipschitzParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LipschitzParams
impl PartialEq for LipschitzParams
Source§impl Serialize for LipschitzParams
impl Serialize for LipschitzParams
impl StructuralPartialEq for LipschitzParams
Auto Trait Implementations§
impl Freeze for LipschitzParams
impl RefUnwindSafe for LipschitzParams
impl Send for LipschitzParams
impl Sync for LipschitzParams
impl Unpin for LipschitzParams
impl UnwindSafe for LipschitzParams
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> 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.