pub struct KalmanHedgeRatioOutput {
pub hedge_ratio: f64,
pub intercept: f64,
pub spread: f64,
}Expand description
Output of KalmanHedgeRatio.
Fields§
§hedge_ratio: f64Current hedge ratio β — the filtered slope of a on b.
intercept: f64Current intercept α — the filtered level offset.
spread: f64Forecast error a − (α + β·b): how far the latest a sits from the
Kalman-predicted relationship. This is the tradeable spread signal.
Trait Implementations§
Source§impl Clone for KalmanHedgeRatioOutput
impl Clone for KalmanHedgeRatioOutput
Source§fn clone(&self) -> KalmanHedgeRatioOutput
fn clone(&self) -> KalmanHedgeRatioOutput
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 moreimpl Copy for KalmanHedgeRatioOutput
Source§impl Debug for KalmanHedgeRatioOutput
impl Debug for KalmanHedgeRatioOutput
Source§impl PartialEq for KalmanHedgeRatioOutput
impl PartialEq for KalmanHedgeRatioOutput
Source§fn eq(&self, other: &KalmanHedgeRatioOutput) -> bool
fn eq(&self, other: &KalmanHedgeRatioOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KalmanHedgeRatioOutput
Auto Trait Implementations§
impl Freeze for KalmanHedgeRatioOutput
impl RefUnwindSafe for KalmanHedgeRatioOutput
impl Send for KalmanHedgeRatioOutput
impl Sync for KalmanHedgeRatioOutput
impl Unpin for KalmanHedgeRatioOutput
impl UnsafeUnpin for KalmanHedgeRatioOutput
impl UnwindSafe for KalmanHedgeRatioOutput
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