pub struct MultifractalConfig {
pub moments: Vec<f64>,
pub bootstrap_samples: usize,
pub min_scale: usize,
pub max_scale: Option<usize>,
pub use_modwt: bool,
pub confidence_level: f64,
pub rng_seed: Option<u64>,
}Expand description
Configuration for multifractal analysis
Fields§
§moments: Vec<f64>Range of moments q for structure function computation Typically [-5, 5] with step 0.1
bootstrap_samples: usizeNumber of bootstrap samples for confidence intervals Set to 0 to disable bootstrap (faster but no confidence intervals)
min_scale: usizeMinimum scale for analysis.
- For
MultifractalConfig::default(full spectrum), defaults to 2 to skip the noisiest finest scale in WLMF. - For
MultifractalConfig::for_hurst_only, defaults to 1 to use all available scales in Hurst estimation.
max_scale: Option<usize>Maximum scale for analysis (defaults to log2(signal_length) - 1)
use_modwt: boolUse MODWT instead of DWT for shift-invariance
confidence_level: f64Confidence level for intervals (e.g., 0.95 for 95%)
rng_seed: Option<u64>Optional RNG seed for reproducible bootstrap sampling If None, uses thread_rng() for non-deterministic sampling Set to Some(seed) for reproducible results in testing/debugging
Implementations§
Source§impl MultifractalConfig
impl MultifractalConfig
Sourcepub fn for_hurst_only() -> Self
pub fn for_hurst_only() -> Self
Create configuration for Hurst exponent estimation only
Sourcepub fn with_moments(q_min: f64, q_max: f64, q_step: f64) -> Self
pub fn with_moments(q_min: f64, q_max: f64, q_step: f64) -> Self
Create configuration with custom moment range
Sourcepub fn with_bootstrap_samples(self, samples: usize) -> Self
pub fn with_bootstrap_samples(self, samples: usize) -> Self
Set bootstrap samples
Sourcepub fn with_scale_range(self, min_scale: usize, max_scale: usize) -> Self
pub fn with_scale_range(self, min_scale: usize, max_scale: usize) -> Self
Set scale range
Sourcepub fn with_modwt(self, use_modwt: bool) -> Self
pub fn with_modwt(self, use_modwt: bool) -> Self
Enable or disable MODWT
Sourcepub fn with_rng_seed(self, seed: u64) -> Self
pub fn with_rng_seed(self, seed: u64) -> Self
Set RNG seed for reproducible bootstrap sampling Useful for testing, debugging, and reproducible research
Trait Implementations§
Source§impl Clone for MultifractalConfig
impl Clone for MultifractalConfig
Source§fn clone(&self) -> MultifractalConfig
fn clone(&self) -> MultifractalConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MultifractalConfig
impl Debug for MultifractalConfig
Auto Trait Implementations§
impl Freeze for MultifractalConfig
impl RefUnwindSafe for MultifractalConfig
impl Send for MultifractalConfig
impl Sync for MultifractalConfig
impl Unpin for MultifractalConfig
impl UnwindSafe for MultifractalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§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 moreSource§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