Struct IntradaySeasonalityConfig
#[non_exhaustive]pub struct IntradaySeasonalityConfig {
pub min_sessions: usize,
pub window_sessions: Option<usize>,
pub factor_floor: f64,
}Expand description
Causal intraday-seasonality (time-of-day U-shape) de-seasonalization.
Returns are divided by a trailing (causal) estimate of the typical
absolute return for their time-of-day bin (bin = position % bars_per_session)
before the transform, so the recurrent open/close volatility pattern is not
mistaken for jumps. Only applies to intraday-bar profiles
(SamplingCadence::IntradayBars); a no-op otherwise.
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.min_sessions: usizeMinimum prior same-bin observations before scaling activates; below this the return passes through unscaled. Must be at least 1.
window_sessions: Option<usize>Bounded trailing window in sessions; None uses an expanding mean over
all prior same-bin observations. Some(0) is invalid.
factor_floor: f64Relative lower bound on the normalized periodicity factor
f(bin) = m(bin) / mean_b m(b). Caps how much a transiently quiet bin can
amplify a return (a floor of 0.1 allows at most a 10× amplification),
guarding against division by a near-zero quiet-bin estimate. Must be
finite and in (0, 1].
Trait Implementations§
§impl Clone for IntradaySeasonalityConfig
impl Clone for IntradaySeasonalityConfig
§fn clone(&self) -> IntradaySeasonalityConfig
fn clone(&self) -> IntradaySeasonalityConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for IntradaySeasonalityConfig
impl Debug for IntradaySeasonalityConfig
§impl Default for IntradaySeasonalityConfig
impl Default for IntradaySeasonalityConfig
§impl PartialEq for IntradaySeasonalityConfig
impl PartialEq for IntradaySeasonalityConfig
impl Copy for IntradaySeasonalityConfig
impl StructuralPartialEq for IntradaySeasonalityConfig
Auto Trait Implementations§
impl Freeze for IntradaySeasonalityConfig
impl RefUnwindSafe for IntradaySeasonalityConfig
impl Send for IntradaySeasonalityConfig
impl Sync for IntradaySeasonalityConfig
impl Unpin for IntradaySeasonalityConfig
impl UnwindSafe for IntradaySeasonalityConfig
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.