pub struct SpectralAnalysisConfig {Show 25 fields
pub calculate_welch_psd: bool,
pub calculate_periodogram_psd: bool,
pub calculate_ar_psd: bool,
pub welch_window_length_factor: f64,
pub welch_overlap_factor: f64,
pub ar_order: usize,
pub detect_spectral_peaks: bool,
pub min_peak_height: f64,
pub min_peak_distance: usize,
pub peak_prominence_threshold: f64,
pub max_peaks: usize,
pub calculate_eeg_bands: bool,
pub calculate_custom_bands: bool,
pub custom_band_boundaries: Vec<f64>,
pub calculate_relative_band_powers: bool,
pub calculate_band_ratios: bool,
pub calculate_spectral_shannon_entropy: bool,
pub calculate_spectral_renyi_entropy: bool,
pub renyi_alpha: f64,
pub calculate_spectral_permutation_entropy: bool,
pub spectral_permutation_order: usize,
pub calculate_spectral_sample_entropy: bool,
pub spectral_sample_entropy_tolerance: f64,
pub calculate_spectral_complexity: bool,
pub calculate_spectral_flatness: bool,
}Expand description
Configuration for advanced spectral analysis feature calculation
Fields§
§calculate_welch_psd: boolCalculate Welch’s method PSD
calculate_periodogram_psd: boolCalculate periodogram PSD
calculate_ar_psd: boolCalculate autoregressive PSD
welch_window_length_factor: f64Window length for Welch’s method (as fraction of signal length)
welch_overlap_factor: f64Overlap for Welch’s method (as fraction of window length)
ar_order: usizeOrder for autoregressive PSD estimation
detect_spectral_peaks: boolEnable spectral peak detection
min_peak_height: f64Minimum peak height (as fraction of max power)
min_peak_distance: usizeMinimum peak distance (in frequency bins)
peak_prominence_threshold: f64Peak prominence threshold
max_peaks: usizeMaximum number of peaks to detect
calculate_eeg_bands: boolEnable standard EEG frequency band analysis
calculate_custom_bands: boolEnable custom frequency band analysis
custom_band_boundaries: Vec<f64>Custom frequency band boundaries (in Hz or normalized units)
calculate_relative_band_powers: boolEnable relative band power calculation
calculate_band_ratios: boolEnable band power ratio calculation
calculate_spectral_shannon_entropy: boolCalculate spectral Shannon entropy
calculate_spectral_renyi_entropy: boolCalculate spectral Rényi entropy
renyi_alpha: f64Rényi entropy alpha parameter
calculate_spectral_permutation_entropy: boolCalculate spectral permutation entropy
spectral_permutation_order: usizePermutation order for spectral permutation entropy
calculate_spectral_sample_entropy: boolCalculate spectral sample entropy
spectral_sample_entropy_tolerance: f64Sample entropy tolerance for spectral domain
calculate_spectral_complexity: boolCalculate spectral complexity measures
calculate_spectral_flatness: boolCalculate spectral flatness (Wiener entropy)
Trait Implementations§
Source§impl Clone for SpectralAnalysisConfig
impl Clone for SpectralAnalysisConfig
Source§fn clone(&self) -> SpectralAnalysisConfig
fn clone(&self) -> SpectralAnalysisConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpectralAnalysisConfig
impl Debug for SpectralAnalysisConfig
Auto Trait Implementations§
impl Freeze for SpectralAnalysisConfig
impl RefUnwindSafe for SpectralAnalysisConfig
impl Send for SpectralAnalysisConfig
impl Sync for SpectralAnalysisConfig
impl Unpin for SpectralAnalysisConfig
impl UnwindSafe for SpectralAnalysisConfig
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§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).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.