pub struct FitAnswer {
pub shape: FittedShape,
pub sigma: f64,
pub form: (f64, f64),
pub used: Vec<bool>,
pub residuals: Vec<f64>,
pub converged: bool,
}Expand description
A least-squares fit and what it rests on.
Fields§
§shape: FittedShape§sigma: f64RMS distance of the points used from the shape.
form: (f64, f64)The most negative and most positive signed distance of the points used: the form error is their difference.
used: Vec<bool>Which points the fit used, one per point given.
residuals: Vec<f64>Each point’s signed distance from the shape, used or not.
converged: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for FitAnswer
impl<'de> Deserialize<'de> for FitAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FitAnswer
Auto Trait Implementations§
impl Forget for FitAnswer
impl Freeze for FitAnswer
impl RefUnwindSafe for FitAnswer
impl Send for FitAnswer
impl Sync for FitAnswer
impl Unpin for FitAnswer
impl UnsafeUnpin for FitAnswer
impl UnwindSafe for FitAnswer
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