Struct JumpEvent
#[non_exhaustive]pub struct JumpEvent {Show 14 fields
pub observation_index: usize,
pub return_index: usize,
pub magnitude: f64,
pub coefficient: f64,
pub scale_level: usize,
pub period_span: usize,
pub test_statistic: f64,
pub threshold: f64,
pub threshold_ratio: f64,
pub p_value: f64,
pub neg_log_p: f64,
pub direction: JumpDirection,
pub periods_since_event: usize,
pub warning_level: JumpWarningLevel,
}Expand description
A consolidated product jump/stress event.
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.observation_index: usizeZero-based price observation index where the event is surfaced.
return_index: usizeZero-based return index used by the transform input.
magnitude: f64Return value at the detected event index.
coefficient: f64Transform coefficient that crossed the threshold.
scale_level: usizeOne-based detail scale where the strongest event was detected.
period_span: usizeApproximate horizon span in input periods for this scale.
test_statistic: f64Absolute coefficient/noise test statistic.
threshold: f64Scale-specific threshold used for detection.
threshold_ratio: f64Ratio of test_statistic / threshold.
p_value: f64Two-sided p-value of the jump statistic under the XGF Gaussian null:
2·Φ(−test_statistic/null_std). Exact for the level-1 MODWT statistic,
approximate at deeper levels and on a hand-configured DWT profile.
neg_log_p: f64Continuous anomaly score −ln(p_value); larger = more significant.
direction: JumpDirectionDirection inferred from the return value at return_index.
periods_since_event: usizeNumber of return periods from this event to the end of the input window.
warning_level: JumpWarningLevelProduct-facing warning level.
Trait Implementations§
impl StructuralPartialEq for JumpEvent
Auto Trait Implementations§
impl Freeze for JumpEvent
impl RefUnwindSafe for JumpEvent
impl Send for JumpEvent
impl Sync for JumpEvent
impl Unpin for JumpEvent
impl UnwindSafe for JumpEvent
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.