pub struct Fit<S> {
pub shape: S,
pub sigma: f64,
pub form: (f64, f64),
pub used: Vec<bool>,
pub residuals: Vec<f64>,
pub iterations: u32,
pub rounds: u32,
pub converged: bool,
pub side: Option<Side>,
}Expand description
A fitted shape and how well it fits.
Fields§
§shape: SThe shape.
sigma: f64The RMS of the residuals of the points kept.
form: (f64, f64)The least and the greatest residual of the points kept; their difference is the form error, peak to peak.
used: Vec<bool>Whether each point was kept by the last round.
residuals: Vec<f64>Each point’s signed distance to the shape: positive off the material’s side where the side is known, else away from the centre, the axis or the spine; along the normal for a plane, to the left for a line in the plane. A line in space has no side, and its residual is the distance.
iterations: u32The least-squares steps taken, over every round.
rounds: u32The rounds fitted: one, unless the cutoff dropped points.
converged: boolWhether the last round’s steps converged and the kept points stopped changing.
side: Option<Side>The side the residuals are signed by, given or read from the
normals; None for a kind without one or where neither said.
Trait Implementations§
impl<S: PartialEq> StructuralPartialEq for Fit<S>
Auto Trait Implementations§
impl<S> Freeze for Fit<S>where
S: Freeze,
impl<S> RefUnwindSafe for Fit<S>where
S: RefUnwindSafe,
impl<S> Send for Fit<S>where
S: Send,
impl<S> Sync for Fit<S>where
S: Sync,
impl<S> Unpin for Fit<S>where
S: Unpin,
impl<S> UnsafeUnpin for Fit<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Fit<S>where
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.