pub struct LinearRegression {
pub slope: f64,
pub intercept: f64,
pub r_squared: f64,
pub residual_std_error: f64,
pub slope_std_error: f64,
pub slope_t: f64,
pub slope_p_value: f64,
pub intercept_std_error: f64,
pub intercept_p_value: f64,
pub n: usize,
}Expand description
Ordinary-least-squares fit of y = intercept + slope·x.
Fields§
§slope: f64§intercept: f64§r_squared: f64Coefficient of determination R² (fraction of variance explained).
residual_std_error: f64Residual standard error s = √(SSE/(n−2)).
slope_std_error: f64§slope_t: f64§slope_p_value: f64Two-sided p-value for slope = 0 (df = n−2).
intercept_std_error: f64§intercept_p_value: f64§n: usizeTrait Implementations§
Source§impl Clone for LinearRegression
impl Clone for LinearRegression
Source§fn clone(&self) -> LinearRegression
fn clone(&self) -> LinearRegression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearRegression
impl Debug for LinearRegression
Source§impl PartialEq for LinearRegression
impl PartialEq for LinearRegression
Source§fn eq(&self, other: &LinearRegression) -> bool
fn eq(&self, other: &LinearRegression) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LinearRegression
impl StructuralPartialEq for LinearRegression
Auto Trait Implementations§
impl Freeze for LinearRegression
impl RefUnwindSafe for LinearRegression
impl Send for LinearRegression
impl Sync for LinearRegression
impl Unpin for LinearRegression
impl UnsafeUnpin for LinearRegression
impl UnwindSafe for LinearRegression
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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