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