Struct CoefficientScore
#[non_exhaustive]pub struct CoefficientScore {
pub observation_index: usize,
pub return_index: usize,
pub scale_level: usize,
pub period_span: usize,
pub coefficient: f64,
pub test_statistic: f64,
pub threshold: f64,
pub threshold_ratio: f64,
pub p_value: f64,
pub neg_log_p: f64,
pub direction: JumpDirection,
}Expand description
A scored detail coefficient that did not cross the detection threshold but
ranks high enough (per NearThresholdConfig) to surface for
near-threshold ranking/aggregation. Carries the same continuous scores as a
detected JumpEvent without the product-facing warning fields.
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 for the coefficient.
return_index: usizeZero-based return index used by the transform input.
scale_level: usizeOne-based detail scale level of the coefficient.
period_span: usizeApproximate horizon span in input periods for this scale.
coefficient: f64The detail coefficient value.
test_statistic: f64Absolute coefficient/noise test statistic |J_W|.
threshold: f64Scale-specific detection threshold the coefficient was compared against.
threshold_ratio: f64Ratio of test_statistic / threshold (always < 1 here).
p_value: f64Two-sided p-value under the XGF Gaussian null.
neg_log_p: f64Continuous anomaly score −ln(p_value).
direction: JumpDirectionDirection inferred from the return value at return_index.
Trait Implementations§
§impl Clone for CoefficientScore
impl Clone for CoefficientScore
§fn clone(&self) -> CoefficientScore
fn clone(&self) -> CoefficientScore
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CoefficientScore
impl Debug for CoefficientScore
§impl PartialEq for CoefficientScore
impl PartialEq for CoefficientScore
impl StructuralPartialEq for CoefficientScore
Auto Trait Implementations§
impl Freeze for CoefficientScore
impl RefUnwindSafe for CoefficientScore
impl Send for CoefficientScore
impl Sync for CoefficientScore
impl Unpin for CoefficientScore
impl UnwindSafe for CoefficientScore
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.