pub struct DirectionalAnalysis<T> {
pub directional_energy: Vec<Vec<T>>,
pub dominant_directions: Vec<usize>,
pub stability: Vec<T>,
pub trend_strength: Vec<T>,
}Expand description
Directional analysis result for financial applications
Fields§
§directional_energy: Vec<Vec<T>>Energy in each direction at each scale
dominant_directions: Vec<usize>Dominant direction at each scale (0-5 corresponding to different angles)
stability: Vec<T>Directional stability (how consistent the direction is over time)
trend_strength: Vec<T>Trend strength at each scale
Implementations§
Source§impl<T: Float + FromPrimitive + Clone + Sum> DirectionalAnalysis<T>
impl<T: Float + FromPrimitive + Clone + Sum> DirectionalAnalysis<T>
Sourcepub fn detect_regime_changes(&self, threshold: T) -> Vec<usize>
pub fn detect_regime_changes(&self, threshold: T) -> Vec<usize>
Detect regime changes based on directional analysis
Trait Implementations§
Source§impl<T: Clone> Clone for DirectionalAnalysis<T>
impl<T: Clone> Clone for DirectionalAnalysis<T>
Source§fn clone(&self) -> DirectionalAnalysis<T>
fn clone(&self) -> DirectionalAnalysis<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for DirectionalAnalysis<T>
impl<T> RefUnwindSafe for DirectionalAnalysis<T>where
T: RefUnwindSafe,
impl<T> Send for DirectionalAnalysis<T>where
T: Send,
impl<T> Sync for DirectionalAnalysis<T>where
T: Sync,
impl<T> Unpin for DirectionalAnalysis<T>where
T: Unpin,
impl<T> UnwindSafe for DirectionalAnalysis<T>where
T: UnwindSafe,
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