pub struct Fit {
pub kind: FitKind,
pub coefficients: Vec<f64>,
pub r_squared: f64,
pub x_range: (f64, f64),
/* private fields */
}Expand description
A fitted model: its coefficients, its goodness of fit, and an evaluator.
Fields§
§kind: FitKindThe model.
coefficients: Vec<f64>Coefficients: [a, b] for two-parameter models, c₀…cₙ for polynomials.
r_squared: f64Coefficient of determination on the original data (1 = perfect).
x_range: (f64, f64)Smallest and largest x of the fitted points.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Fit
Auto Trait Implementations§
impl Forget for Fit
impl Freeze for Fit
impl Move for Fit
impl RefUnwindSafe for Fit
impl Send for Fitwhere
RawVecInner: Send,
impl Sync for Fitwhere
RawVecInner: Sync,
impl Unpin for Fit
impl UnsafeUnpin for Fitwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
impl UnwindSafe for Fitwhere
RawVecInner: 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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