pub struct CoherenceConfig {
pub time_smoothing_scale: f64,
pub scale_smoothing_scale: f64,
pub use_fft: bool,
}Expand description
Configuration for wavelet coherence computation
Fields§
§time_smoothing_scale: f64Smoothing scale for time direction (default: 0.6) Controls the width of the Gaussian smoothing kernel in time. Larger values provide more smoothing.
scale_smoothing_scale: f64Smoothing scale for frequency direction (default: 1.0) Controls the width of the Gaussian smoothing kernel in log-scale space. Larger values provide more smoothing across frequency scales.
use_fft: boolUse FFT-based CWT for coherence computation when true.
FFT-based CWT (cwt_fft) reduces the per-scale complexity from O(N²)
to approximately O(N log N), which is beneficial for longer time series
and larger scale grids. When this is false, an internal heuristic
based on signal length and number of scales decides whether to use
FFT or direct convolution.
Trait Implementations§
Source§impl Clone for CoherenceConfig
impl Clone for CoherenceConfig
Source§fn clone(&self) -> CoherenceConfig
fn clone(&self) -> CoherenceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoherenceConfig
impl Debug for CoherenceConfig
Auto Trait Implementations§
impl Freeze for CoherenceConfig
impl RefUnwindSafe for CoherenceConfig
impl Send for CoherenceConfig
impl Sync for CoherenceConfig
impl Unpin for CoherenceConfig
impl UnwindSafe for CoherenceConfig
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
Mutably borrows from an owned value. Read more
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>
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 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>
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