pub struct TrajectoryState {
pub hurst: f64,
pub trend: Trend,
pub velocity: f64,
}Expand description
Trajectory state captures trend direction and momentum via Hurst exponent estimation.
Fields§
§hurst: f64Hurst exponent estimate (0-1)
trend: TrendCurrent trend
velocity: f64Rate of change (velocity)
Implementations§
Trait Implementations§
Source§impl Clone for TrajectoryState
impl Clone for TrajectoryState
Source§fn clone(&self) -> TrajectoryState
fn clone(&self) -> TrajectoryState
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 TrajectoryState
impl Debug for TrajectoryState
Source§impl<'de> Deserialize<'de> for TrajectoryState
impl<'de> Deserialize<'de> for TrajectoryState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrajectoryState
impl PartialEq for TrajectoryState
Source§fn eq(&self, other: &TrajectoryState) -> bool
fn eq(&self, other: &TrajectoryState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrajectoryState
impl Serialize for TrajectoryState
impl StructuralPartialEq for TrajectoryState
Auto Trait Implementations§
impl Freeze for TrajectoryState
impl RefUnwindSafe for TrajectoryState
impl Send for TrajectoryState
impl Sync for TrajectoryState
impl Unpin for TrajectoryState
impl UnsafeUnpin for TrajectoryState
impl UnwindSafe for TrajectoryState
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