pub struct CrossDomainForecaster { /* private fields */ }Expand description
Cross-domain correlation forecaster
Implementations§
Source§impl CrossDomainForecaster
impl CrossDomainForecaster
Sourcepub fn add_domain(&mut self, domain: String, forecaster: CoherenceForecaster)
pub fn add_domain(&mut self, domain: String, forecaster: CoherenceForecaster)
Add a domain with its own forecaster
Sourcepub fn calculate_correlation(&self, domain1: &str, domain2: &str) -> Option<f64>
pub fn calculate_correlation(&self, domain1: &str, domain2: &str) -> Option<f64>
Calculate correlation between domains
Sourcepub fn forecast_all(&self, steps: usize) -> Vec<(String, Vec<Forecast>)>
pub fn forecast_all(&self, steps: usize) -> Vec<(String, Vec<Forecast>)>
Forecast all domains and return combined results
Sourcepub fn detect_synchronized_regime_changes(&self) -> Vec<(String, f64)>
pub fn detect_synchronized_regime_changes(&self) -> Vec<(String, f64)>
Detect synchronized regime changes across domains
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrossDomainForecaster
impl RefUnwindSafe for CrossDomainForecaster
impl Send for CrossDomainForecaster
impl Sync for CrossDomainForecaster
impl Unpin for CrossDomainForecaster
impl UnwindSafe for CrossDomainForecaster
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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