pub struct LmConfig {
pub max_iter: usize,
pub lambda_init: f64,
pub lambda_up: f64,
pub lambda_down: f64,
pub tol_chi2: f64,
pub tol_param: f64,
pub fd_step: f64,
pub compute_covariance: bool,
}Expand description
Configuration for the LM optimizer.
Fields§
§max_iter: usizeMaximum number of iterations.
lambda_init: f64Initial damping parameter λ.
lambda_up: f64Factor to increase λ on rejected step.
lambda_down: f64Factor to decrease λ on accepted step.
tol_chi2: f64Convergence tolerance on relative χ² change.
tol_param: f64Convergence tolerance on relative parameter change.
fd_step: f64Step size for finite-difference Jacobian.
compute_covariance: boolWhether to compute the covariance matrix (and uncertainties) after
convergence. This requires an extra Jacobian evaluation + matrix
inversion at the final parameters. Set to false for per-pixel
spatial mapping where only densities are needed.
Default: true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LmConfig
impl RefUnwindSafe for LmConfig
impl Send for LmConfig
impl Sync for LmConfig
impl Unpin for LmConfig
impl UnwindSafe for LmConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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