Struct TransformSpec
#[non_exhaustive]pub struct TransformSpec {
pub kind: FinanceTransformKind,
pub boundary: Option<BoundaryModeSpec>,
pub max_levels: Option<usize>,
pub wpt_selection: Option<WptBandSelection>,
pub cwt_wavelet: Option<ContinuousWaveletSpec>,
pub cwt_padding: Option<CwtPaddingMode>,
pub multifractal_mode: Option<MultifractalMode>,
}Expand description
Transform configuration for product-facing finance analytics.
TransformSpec is PartialEq rather than Eq because
cwt_wavelet may carry floating-point parameters (e.g. Morlet’s
omega); assert_eq! and value comparisons still work, but the
type cannot be used as a HashSet/HashMap key.
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.kind: FinanceTransformKindTransform family.
boundary: Option<BoundaryModeSpec>Boundary mode for transforms that require boundary handling.
max_levels: Option<usize>Maximum requested decomposition levels.
wpt_selection: Option<WptBandSelection>WPT-only: which leaf-selection strategy was used. Populated by the
WPT band-energy signal; remains None for other transform families.
cwt_wavelet: Option<ContinuousWaveletSpec>CWT-only: which continuous wavelet was used. Populated by the CWT
phase-coherence signal; remains None for other transform families.
cwt_padding: Option<CwtPaddingMode>CWT-only: which boundary-padding mode was used. Populated by the
CWT phase-coherence signal; remains None for other transform
families.
multifractal_mode: Option<MultifractalMode>Multifractal-only: which output mode was selected. Populated by
the wavelet leader multifractal signal; remains None for other
transform families.
Implementations§
§impl TransformSpec
impl TransformSpec
pub fn daily_eod_default() -> Self
pub fn daily_eod_default() -> Self
Daily EOD default: shift-invariant MODWT with bounded decomposition depth.
Trait Implementations§
§impl Clone for TransformSpec
impl Clone for TransformSpec
§fn clone(&self) -> TransformSpec
fn clone(&self) -> TransformSpec
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for TransformSpec
impl Debug for TransformSpec
§impl PartialEq for TransformSpec
impl PartialEq for TransformSpec
impl StructuralPartialEq for TransformSpec
Auto Trait Implementations§
impl Freeze for TransformSpec
impl RefUnwindSafe for TransformSpec
impl Send for TransformSpec
impl Sync for TransformSpec
impl Unpin for TransformSpec
impl UnwindSafe for TransformSpec
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.