pub struct Model {
pub alpha: f64,
pub beta: f64,
pub r2: f64,
}
Expand description
A simple linear regression model.
Fields§
§alpha: f64
The y-intercept of the model function.
beta: f64
The slope of the model function.
r2: f64
The goodness of fit of the model function.
Trait Implementations§
impl Copy for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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