JumpDiffusionPriorConfig

Struct JumpDiffusionPriorConfig 

#[non_exhaustive]
pub struct JumpDiffusionPriorConfig { pub detection: JumpEventConfig, pub min_jump_count: usize, pub min_input_observations: usize, pub diffusion_correction: bool, pub noise_scale: JumpPriorNoiseScale, pub max_jump_fraction: f64, pub truncation_correction: bool, pub min_detection_probability: f64, }
Expand description

Configuration for jump_diffusion_prior_signal.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§detection: JumpEventConfig

Detection settings shared with jump_event_signal. Detection depth defaults to scale level 1 — and, unlike jump_event_signal, a None levels does not inherit the profile’s multi-scale max_levels: a Merton jump is a one-period impulse, the level-1 MODWT statistic is the one with an exactly calibrated null, and deeper scales would misattribute multi-day volatility bursts to the jump intensity, so depth beyond 1 is strictly opt-in. near_threshold settings are ignored here (sub-threshold scores never enter the triple).

§min_jump_count: usize

Minimum consolidated jumps required for an identifiable triple. Below this the signal is Unavailable — never a fabricated estimate. Must be at least 2 (a jump-size std needs two observations).

§min_input_observations: usize

Minimum finite price-return observations required. The effective floor is the max of this and detection.min_input_observations.

§diffusion_correction: bool

Subtract the per-period bipower diffusive variance from the raw jump-size variance before taking σ_J. A detected jump return is jump + diffusion, so raw moments overstate σ_J by the diffusive floor; the correction also aligns prior_jump_variance with the realized QV − BV leg, which subtracts the same floor.

§noise_scale: JumpPriorNoiseScale

Noise scale for the detection test statistic. See JumpPriorNoiseScale; defaults to JumpPriorNoiseScale::Mad.

§max_jump_fraction: f64

Maximum fraction of the window’s returns that may carry a consolidated detection before the estimate is refused (implausible_jump_fraction). Merton jumps are rare by model assumption: when the detector flags this much of the window, the Gaussian-null noise scale itself is not credible (e.g. a near-degenerate coefficient distribution collapsing the MAD to rounding residue) and any triple would be fabricated. Default 0.2 — beyond ~50 jumps/year at daily resolution the jump/diffusion separation is meaningless anyway. Must be in (0, 1]. The cap applies to detected jumps; a truncation-corrected λ may imply a total fraction above it (reported via diagnostic, not re-gated).

§truncation_correction: bool

Correct the detection-conditional λ for threshold truncation (#86): fit the jump-size distribution as an outer-truncated normal (EM), compute the detection probability p̂_det implied by the fitted distribution and the level-1 cutoff, and inflate λ̂ by 1/p̂_det (widening its SE through the correction). Applies only on the default detector shape — MODWT, level-1, MAD noise scale; anywhere else, or on any numerical failure, the uncorrected detection-conditional triple is published with a truncation_correction_skipped diagnostic. Default true.

§min_detection_probability: f64

Floor on the fitted detection probability below which the truncation correction is not applied (the window cannot identify total intensity; inflating by 1/p̂ would be fabrication). Default 0.2; must be finite and in (0, 1).

Implementations§

§

impl JumpDiffusionPriorConfig

pub fn for_daily_eod() -> Self

Default prior-estimation settings for daily EOD analytics.

pub fn validate(&self) -> Result<()>

Validate the prior-estimation configuration.

Trait Implementations§

§

impl Clone for JumpDiffusionPriorConfig

§

fn clone(&self) -> JumpDiffusionPriorConfig

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for JumpDiffusionPriorConfig

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for JumpDiffusionPriorConfig

§

fn default() -> Self

Returns the “default value” for a type. Read more
§

impl PartialEq for JumpDiffusionPriorConfig

§

fn eq(&self, other: &JumpDiffusionPriorConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl StructuralPartialEq for JumpDiffusionPriorConfig

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoEither for T

§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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>
where F: FnOnce(&Self) -> bool,

Converts 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

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,