Struct VolatilityScaleResult
#[non_exhaustive]pub struct VolatilityScaleResult {
pub total_realized_volatility: f64,
pub smooth_component_volatility: f64,
pub smooth_component_contribution_pct: f64,
pub scale_components: Vec<VolatilityScaleComponent>,
pub dominant_horizon: VolatilityHorizon,
pub annualization_factor: Option<f64>,
pub robust: bool,
pub spectral_entropy: f64,
pub normalized_entropy: f64,
}Expand description
Productized MODWT volatility-scale result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_realized_volatility: f64Total volatility: √(Σ detail-band variance + smooth-band variance) on
de-meaned returns, which by the MODWT energy identity (Percival & Walden
2000) equals the population standard deviation of the returns. NOTE:
despite the field name this is not realized volatility in the
Andersen–Bollerslev–Diebold–Labys (2003) sense; the name is retained for
wire compatibility and is a candidate for renaming in a future breaking
release.
smooth_component_volatility: f64Smooth approximation component volatility.
smooth_component_contribution_pct: f64Smooth approximation percentage contribution to total variance.
scale_components: Vec<VolatilityScaleComponent>Per-scale detail volatility components.
dominant_horizon: VolatilityHorizonDominant volatility horizon, including smooth component when dominant.
annualization_factor: Option<f64>Annualization factor applied to volatility values.
robust: boolWhether MAD-based robust estimation was used.
spectral_entropy: f64Raw Shannon spectral entropy of the variance distribution (detail bands
plus the smooth band) in nats ([0, ln K]). Computed by the crate-internal spectral_entropy helper.
Defaults to 0.0 when deserialising pre-existing payloads that predate this field.
normalized_entropy: f64Normalised spectral entropy H / ln K ∈ [0, 1]: a regime-instability
indicator. Near 0 = variance concentrated at one dominant scale (stable
regime); near 1 = variance spread evenly across scales (diffuse,
unstable regime). Naicker (2026, SSRN 6677659) §2.3.3; Shannon (1948).
Trait Implementations§
§impl Clone for VolatilityScaleResult
impl Clone for VolatilityScaleResult
§fn clone(&self) -> VolatilityScaleResult
fn clone(&self) -> VolatilityScaleResult
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for VolatilityScaleResult
impl Debug for VolatilityScaleResult
§impl PartialEq for VolatilityScaleResult
impl PartialEq for VolatilityScaleResult
impl StructuralPartialEq for VolatilityScaleResult
Auto Trait Implementations§
impl Freeze for VolatilityScaleResult
impl RefUnwindSafe for VolatilityScaleResult
impl Send for VolatilityScaleResult
impl Sync for VolatilityScaleResult
impl Unpin for VolatilityScaleResult
impl UnwindSafe for VolatilityScaleResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 more§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.