pub struct LinRegBar {
pub slope: f64,
pub intercept: f64,
pub r_squared: f64,
pub angle_radians: f64,
pub angle_degrees: f64,
}Expand description
One fitted window.
Fields§
§slope: f64(\Delta y / \Delta x) with (x) in bar-index units (0 = oldest in window).
intercept: f64(y) at (x = 0) (oldest bar of the window).
r_squared: f64Coefficient of determination in ([0, 1]) (clamped); 1 = perfect fit.
angle_radians: f64atan(slope) radians.
angle_degrees: f64atan(slope) degrees.
Trait Implementations§
impl Copy for LinRegBar
impl StructuralPartialEq for LinRegBar
Auto Trait Implementations§
impl Freeze for LinRegBar
impl RefUnwindSafe for LinRegBar
impl Send for LinRegBar
impl Sync for LinRegBar
impl Unpin for LinRegBar
impl UnsafeUnpin for LinRegBar
impl UnwindSafe for LinRegBar
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
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