pub struct HuberScale {
pub d: f64,
pub tol: f64,
pub maxiter: usize,
}Expand description
Huber’s “proposal 2” scaling for the IRLS weights (HuberScale).
This is the scale_est=HuberScale() option in the reference. It solves, by
fixed-point iteration,
scale_{i+1}² = (1 / (n·h)) · Σ χ(r / scale_i) · scale_i²with χ(x) = x²/2 for |x| < d and d²/2 otherwise, and the consistency
constant h = (df_resid / n) · (d² + (1 − d²)·Φ(d) − 1/2 − d·φ(d)).
Fields§
§d: f64Tuning constant d (default 2.5).
tol: f64Convergence tolerance on successive scale estimates.
maxiter: usizeMaximum number of fixed-point iterations.
Implementations§
Trait Implementations§
Source§impl Clone for HuberScale
impl Clone for HuberScale
Source§fn clone(&self) -> HuberScale
fn clone(&self) -> HuberScale
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 moreimpl Copy for HuberScale
Source§impl Debug for HuberScale
impl Debug for HuberScale
Auto Trait Implementations§
impl Freeze for HuberScale
impl RefUnwindSafe for HuberScale
impl Send for HuberScale
impl Sync for HuberScale
impl Unpin for HuberScale
impl UnsafeUnpin for HuberScale
impl UnwindSafe for HuberScale
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