pub struct HurstResult {
pub hurst_exponent: f64,
pub confidence_interval: f64,
pub slope: f64,
pub intercept: f64,
pub r_squared: f64,
pub log_variances: Vec<f64>,
pub scales: Vec<usize>,
pub bootstrap_samples: usize,
}Expand description
Result of Hurst exponent estimation
Fields§
§hurst_exponent: f64Estimated Hurst exponent
confidence_interval: f64Confidence interval (half-width at specified confidence level)
slope: f64Regression slope (should equal 2*H)
intercept: f64Regression intercept
r_squared: f64Coefficient of determination (R²)
log_variances: Vec<f64>Log-variance at each scale (for diagnostics)
scales: Vec<usize>Scales used in estimation
bootstrap_samples: usizeNumber of bootstrap samples used
Implementations§
Source§impl HurstResult
impl HurstResult
Sourcepub fn interpretation(&self) -> &'static str
pub fn interpretation(&self) -> &'static str
Interpret Hurst exponent
Sourcepub fn is_significant(&self) -> bool
pub fn is_significant(&self) -> bool
Check if Hurst exponent is significantly different from 0.5 (random walk)
Trait Implementations§
Source§impl Clone for HurstResult
impl Clone for HurstResult
Source§fn clone(&self) -> HurstResult
fn clone(&self) -> HurstResult
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 Freeze for HurstResult
impl RefUnwindSafe for HurstResult
impl Send for HurstResult
impl Sync for HurstResult
impl Unpin for HurstResult
impl UnwindSafe for HurstResult
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