pub struct LeastSquaresMinimum {
pub x: Vec<f64>,
pub cost: f64,
pub gradient_norm: f64,
pub error_estimate: Option<f64>,
pub jacobian_condition: f64,
pub iterations: usize,
pub evaluations: usize,
pub termination: Termination,
pub status: Status,
}Expand description
A local minimiser of 1/2 ||r(x)||^2.
Fields§
§x: Vec<f64>The minimiser estimate.
cost: f641/2 ||r(x)||^2.
gradient_norm: f64||J^T r||_inf at x.
error_estimate: Option<f64>Length of the undamped Gauss-Newton step from x: near an isolated
minimiser with a well-conditioned Jacobian, an estimate of the
distance to it. Where jacobian_condition is large the iteration
converges only linearly and this can underestimate the distance by a
small factor. None where the Jacobian is rank-deficient at x, so
the minimiser is not isolated and no estimate is given.
jacobian_condition: f64Estimate of the Jacobian’s condition number at x.
iterations: usizeIterations performed.
evaluations: usizeResidual evaluations performed (Jacobian evaluations not counted).
termination: TerminationWhy it stopped.
status: StatusStatus view of termination.
Implementations§
Source§impl LeastSquaresMinimum
impl LeastSquaresMinimum
Sourcepub fn converged(self) -> NumericResult<Self>
pub fn converged(self) -> NumericResult<Self>
The minimum if a tolerance was met.
§Errors
NumericError::NotConverged with the gradient norm reached.
Trait Implementations§
Source§impl Clone for LeastSquaresMinimum
impl Clone for LeastSquaresMinimum
Source§impl Debug for LeastSquaresMinimum
impl Debug for LeastSquaresMinimum
Source§impl PartialEq for LeastSquaresMinimum
impl PartialEq for LeastSquaresMinimum
impl StructuralPartialEq for LeastSquaresMinimum
Auto Trait Implementations§
impl Freeze for LeastSquaresMinimum
impl RefUnwindSafe for LeastSquaresMinimum
impl Send for LeastSquaresMinimum
impl Sync for LeastSquaresMinimum
impl Unpin for LeastSquaresMinimum
impl UnsafeUnpin for LeastSquaresMinimum
impl UnwindSafe for LeastSquaresMinimum
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