pub struct RobustLocationOptions {
pub max_iter: usize,
pub tol: f64,
pub coincidence_eps: f64,
}Expand description
Convergence options for the Weiszfeld iterative algorithm.
Fields§
§max_iter: usizeMaximum number of Weiszfeld iterations. Default: 200.
tol: f64Convergence tolerance (L2 norm of the step vector). Default: 1e-10.
coincidence_eps: f64Distance below which a data point is considered coincident with the current estimate (triggers a perturbation to avoid division by zero). Default: 1e-12.
Implementations§
Source§impl RobustLocationOptions
impl RobustLocationOptions
Sourcepub fn with_max_iter(self, v: usize) -> Self
pub fn with_max_iter(self, v: usize) -> Self
Set the maximum number of Weiszfeld iterations.
Sourcepub fn with_coincidence_eps(self, v: f64) -> Self
pub fn with_coincidence_eps(self, v: f64) -> Self
Set the coincidence epsilon.
Trait Implementations§
Source§impl Clone for RobustLocationOptions
impl Clone for RobustLocationOptions
Source§fn clone(&self) -> RobustLocationOptions
fn clone(&self) -> RobustLocationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RobustLocationOptions
impl Debug for RobustLocationOptions
Auto Trait Implementations§
impl Freeze for RobustLocationOptions
impl RefUnwindSafe for RobustLocationOptions
impl Send for RobustLocationOptions
impl Sync for RobustLocationOptions
impl Unpin for RobustLocationOptions
impl UnsafeUnpin for RobustLocationOptions
impl UnwindSafe for RobustLocationOptions
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