SpectralAnalysisFeatures

Struct SpectralAnalysisFeatures 

Source
pub struct SpectralAnalysisFeatures<F> {
Show 56 fields pub welch_psd: Vec<F>, pub periodogram_psd: Vec<F>, pub ar_psd: Vec<F>, pub frequency_resolution: F, pub total_power: F, pub normalized_psd: Vec<F>, pub peak_frequencies: Vec<F>, pub peak_magnitudes: Vec<F>, pub peak_widths: Vec<F>, pub peak_prominences: Vec<F>, pub significant_peaks_count: usize, pub peak_density: F, pub average_peak_spacing: F, pub peak_asymmetry: Vec<F>, pub delta_power: F, pub theta_power: F, pub alpha_power: F, pub beta_power: F, pub gamma_power: F, pub low_freq_power: F, pub high_freq_power: F, pub relative_band_powers: Vec<F>, pub band_power_ratios: Vec<F>, pub band_entropy: F, pub spectral_shannon_entropy: F, pub spectral_renyi_entropy: F, pub spectral_permutation_entropy: F, pub spectral_sample_entropy: F, pub spectral_complexity: F, pub spectral_information_density: F, pub spectral_approximate_entropy: F, pub spectral_flatness: F, pub spectral_crest_factor: F, pub spectral_irregularity: F, pub spectral_smoothness: F, pub spectral_slope: F, pub spectral_decrease: F, pub spectral_brightness: F, pub spectral_roughness: F, pub spectral_autocorrelation: Vec<F>, pub cross_spectral_coherence: Vec<F>, pub spectral_coherence_mean: F, pub phase_spectrum_features: PhaseSpectrumFeatures<F>, pub bispectrum_features: BispectrumFeatures<F>, pub frequency_stability: F, pub spectral_variability: F, pub frequency_modulation_index: F, pub spectral_purity: F, pub multiscale_spectral_features: Vec<ScaleSpectralFeatures<F>>, pub cross_frequency_coupling: Vec<F>, pub phase_amplitude_coupling: Vec<F>, pub cross_scale_correlations: Vec<F>, pub stft_features: Vec<F>, pub spectrogram_entropy: F, pub time_frequency_localization: F, pub instantaneous_frequency_stats: Vec<F>,
}
Expand description

Comprehensive spectral analysis features

Fields§

§welch_psd: Vec<F>

Power spectral density using Welch’s method

§periodogram_psd: Vec<F>

Power spectral density using periodogram

§ar_psd: Vec<F>

Power spectral density using autoregressive method

§frequency_resolution: F

Frequency resolution of PSD estimates

§total_power: F

Total power across all frequencies

§normalized_psd: Vec<F>

Normalized power spectral density

§peak_frequencies: Vec<F>

Peak frequencies (in Hz or normalized units)

§peak_magnitudes: Vec<F>

Peak magnitudes (power/amplitude at peaks)

§peak_widths: Vec<F>

Peak widths (FWHM - Full Width Half Maximum)

§peak_prominences: Vec<F>

Peak prominence (relative height above surroundings)

§significant_peaks_count: usize

Number of significant peaks

§peak_density: F

Spectral peak density (peaks per frequency unit)

§average_peak_spacing: F

Average peak spacing

§peak_asymmetry: Vec<F>

Peak asymmetry measures

§delta_power: F

Delta band power (0.5-4 Hz)

§theta_power: F

Theta band power (4-8 Hz)

§alpha_power: F

Alpha band power (8-12 Hz)

§beta_power: F

Beta band power (12-30 Hz)

§gamma_power: F

Gamma band power (30-100 Hz)

§low_freq_power: F

Low frequency power (custom band)

§high_freq_power: F

High frequency power (custom band)

§relative_band_powers: Vec<F>

Relative band powers (normalized)

§band_power_ratios: Vec<F>

Band power ratios (e.g., alpha/theta)

§band_entropy: F

Frequency band entropy

§spectral_shannon_entropy: F

Spectral entropy (Shannon entropy of PSD)

§spectral_renyi_entropy: F

Spectral Rényi entropy

§spectral_permutation_entropy: F

Spectral permutation entropy

§spectral_sample_entropy: F

Frequency domain sample entropy

§spectral_complexity: F

Spectral complexity (Lempel-Ziv in frequency domain)

§spectral_information_density: F

Spectral information density

§spectral_approximate_entropy: F

Frequency domain approximate entropy

§spectral_flatness: F

Spectral flatness (Wiener entropy)

§spectral_crest_factor: F

Spectral crest factor (peak-to-average ratio)

§spectral_irregularity: F

Spectral irregularity measure

§spectral_smoothness: F

Spectral smoothness index

§spectral_slope: F

Spectral slope (tilt of spectrum)

§spectral_decrease: F

Spectral decrease measure

§spectral_brightness: F

Spectral brightness (high frequency content)

§spectral_roughness: F

Spectral roughness (fluctuation measure)

§spectral_autocorrelation: Vec<F>

Spectral autocorrelation features

§cross_spectral_coherence: Vec<F>

Cross-spectral features (if applicable)

§spectral_coherence_mean: F

Spectral coherence measures

§phase_spectrum_features: PhaseSpectrumFeatures<F>

Phase spectrum features

§bispectrum_features: BispectrumFeatures<F>

Bispectrum features (third-order statistics)

§frequency_stability: F

Frequency stability measure

§spectral_variability: F

Spectral variability index

§frequency_modulation_index: F

Frequency modulation index

§spectral_purity: F

Spectral purity measure

§multiscale_spectral_features: Vec<ScaleSpectralFeatures<F>>

Multiscale spectral features

§cross_frequency_coupling: Vec<F>

Cross-frequency coupling measures

§phase_amplitude_coupling: Vec<F>

Phase-amplitude coupling indices

§cross_scale_correlations: Vec<F>

Cross-scale correlation measures

§stft_features: Vec<F>

Short-time Fourier transform features

§spectrogram_entropy: F

Spectrogram-based measures

§time_frequency_localization: F

Time-frequency localization measures

§instantaneous_frequency_stats: Vec<F>

Instantaneous frequency measures

Trait Implementations§

Source§

impl<F: Clone> Clone for SpectralAnalysisFeatures<F>

Source§

fn clone(&self) -> SpectralAnalysisFeatures<F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<F: Debug> Debug for SpectralAnalysisFeatures<F>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<F> Default for SpectralAnalysisFeatures<F>

Source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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
Source§

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

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

fn is_in_subset(&self) -> bool

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

fn to_subset_unchecked(&self) -> SS

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

fn from_subset(element: &SS) -> SP

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

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V