pub struct Rlm<N: RobustNorm> { /* private fields */ }Expand description
Implementations§
Source§impl<N: RobustNorm> Rlm<N>
impl<N: RobustNorm> Rlm<N>
Sourcepub fn new(endog: Array1<f64>, exog: Array2<f64>, norm: N) -> Result<Self>
pub fn new(endog: Array1<f64>, exog: Array2<f64>, norm: N) -> Result<Self>
A robust model with endog = y, exog = X, and criterion norm.
Defaults match the reference: scale_est='mad', conv='dev',
update_scale=true, maxiter=50, tol=1e-8.
Sourcepub fn scale_est(self, s: ScaleEst) -> Self
pub fn scale_est(self, s: ScaleEst) -> Self
Select the scale estimator (default ScaleEst::Mad).
Sourcepub fn conv(self, c: Conv) -> Self
pub fn conv(self, c: Conv) -> Self
Select the convergence criterion (default Conv::Deviance).
Sourcepub fn update_scale(self, u: bool) -> Self
pub fn update_scale(self, u: bool) -> Self
Whether to re-estimate the scale every iteration (default true).
Sourcepub fn fit(&self) -> Result<RlmResults>
pub fn fit(&self) -> Result<RlmResults>
Estimate the model by IRLS.
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for Rlm<N>where
N: Freeze,
impl<N> RefUnwindSafe for Rlm<N>where
N: RefUnwindSafe,
impl<N> Send for Rlm<N>where
N: Send,
impl<N> Sync for Rlm<N>where
N: Sync,
impl<N> Unpin for Rlm<N>where
N: Unpin,
impl<N> UnsafeUnpin for Rlm<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for Rlm<N>where
N: UnwindSafe,
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