#[non_exhaustive]pub struct LeastSquaresResult {
pub parameters: Vec<f64>,
pub residuals: Vec<f64>,
pub cost: f64,
pub jacobian: Vec<Vec<f64>>,
pub iterations: usize,
pub converged: bool,
}Expand description
The outcome of a least-squares solve.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parameters: Vec<f64>§residuals: Vec<f64>The residuals at the solution.
cost: f64½ Σ r_i² at the solution.
jacobian: Vec<Vec<f64>>The Jacobian ∂r_i/∂p_j at the solution (row-major, m × n).
iterations: usize§converged: boolTrait Implementations§
Source§impl Clone for LeastSquaresResult
impl Clone for LeastSquaresResult
Auto Trait Implementations§
impl Freeze for LeastSquaresResult
impl RefUnwindSafe for LeastSquaresResult
impl Send for LeastSquaresResult
impl Sync for LeastSquaresResult
impl Unpin for LeastSquaresResult
impl UnsafeUnpin for LeastSquaresResult
impl UnwindSafe for LeastSquaresResult
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