Struct JumpEventConfig
#[non_exhaustive]pub struct JumpEventConfig {
pub levels: Option<usize>,
pub significance_level: f64,
pub min_jump_size: f64,
pub robust_threshold: bool,
pub min_input_observations: usize,
pub consolidation_window: usize,
pub elevated_ratio: f64,
pub critical_ratio: f64,
pub near_threshold: Option<NearThresholdConfig>,
pub intraday_seasonality: Option<IntradaySeasonalityConfig>,
}Expand description
Configuration for productized jump and stress event analytics.
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.levels: Option<usize>Optional decomposition-level override. Defaults to 3 for MODWT and 1 for DWT, capped by the transform’s maximum level.
significance_level: f64Two-sided significance level used by the threshold approximation.
min_jump_size: f64Minimum absolute test statistic required for a jump.
robust_threshold: boolUse MAD-based robust noise estimates.
min_input_observations: usizeMinimum finite price-return observations required to attempt detection.
consolidation_window: usizeEvent indices within this many observations are consolidated across scales.
elevated_ratio: f64Test-statistic/threshold ratio that upgrades a watch to elevated.
critical_ratio: f64Test-statistic/threshold ratio that upgrades an event to critical.
near_threshold: Option<NearThresholdConfig>Optional surfacing of sub-threshold (“near-threshold”) coefficient
scores so consumers can rank/aggregate events that did not cross the
detection threshold. None (default) keeps the binary-only behavior.
intraday_seasonality: Option<IntradaySeasonalityConfig>Optional causal intraday (time-of-day U-shape) de-seasonalization,
applied before the transform and gated to intraday-bar profiles. None
(default) leaves returns untouched.
Implementations§
§impl JumpEventConfig
impl JumpEventConfig
pub fn for_daily_eod() -> Self
pub fn for_daily_eod() -> Self
Default jump-event settings for daily EOD product analytics.
pub fn for_hft() -> Self
pub fn for_hft() -> Self
Default jump-event settings for event-driven/HFT analytics.
pub fn for_intraday() -> Self
pub fn for_intraday() -> Self
Default jump-event settings for intraday-bar analytics, with causal time-of-day de-seasonalization enabled (gated to intraday-bar profiles).
Trait Implementations§
§impl Clone for JumpEventConfig
impl Clone for JumpEventConfig
§fn clone(&self) -> JumpEventConfig
fn clone(&self) -> JumpEventConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for JumpEventConfig
impl Debug for JumpEventConfig
§impl Default for JumpEventConfig
impl Default for JumpEventConfig
§impl PartialEq for JumpEventConfig
impl PartialEq for JumpEventConfig
impl StructuralPartialEq for JumpEventConfig
Auto Trait Implementations§
impl Freeze for JumpEventConfig
impl RefUnwindSafe for JumpEventConfig
impl Send for JumpEventConfig
impl Sync for JumpEventConfig
impl Unpin for JumpEventConfig
impl UnwindSafe for JumpEventConfig
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.