#[repr(C)]pub struct regress_simple {
pub coef: real,
pub bias: real,
}Expand description
simple linear regression
Fields§
§coef: realregression coefficient
bias: realintercept
Implementations§
Source§impl regress_simple
impl regress_simple
Sourcepub fn ols_(
&mut self,
x: &[real],
y: &[real],
x_mean: real,
y_mean: real,
) -> &mut Self
pub fn ols_( &mut self, x: &[real], y: &[real], x_mean: real, y_mean: real, ) -> &mut Self
ordinary least squares for simple linear regression
Sourcepub fn olsx(&mut self, x: &[real], y: &[real], x_mean: real) -> &mut Self
pub fn olsx(&mut self, x: &[real], y: &[real], x_mean: real) -> &mut Self
ordinary least squares for simple linear regression
Sourcepub fn olsy(&mut self, x: &[real], y: &[real], y_mean: real) -> &mut Self
pub fn olsy(&mut self, x: &[real], y: &[real], y_mean: real) -> &mut Self
ordinary least squares for simple linear regression
Auto Trait Implementations§
impl Freeze for regress_simple
impl RefUnwindSafe for regress_simple
impl Send for regress_simple
impl Sync for regress_simple
impl Unpin for regress_simple
impl UnwindSafe for regress_simple
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